Search in sources :

Example 1 with PacketCustom

use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.

the class NEICPH method sendHeal.

public static void sendHeal() {
    PacketCustom packet = new PacketCustom(channel, 8);
    packet.sendToServer();
}
Also used : PacketCustom(codechicken.lib.packet.PacketCustom)

Example 2 with PacketCustom

use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.

the class NEICPH method sendDummySlotSet.

public static void sendDummySlotSet(int slotNumber, ItemStack stack) {
    PacketCustom packet = new PacketCustom(channel, 25);
    packet.writeShort(slotNumber);
    packet.writeItemStack(stack);
    packet.sendToServer();
}
Also used : PacketCustom(codechicken.lib.packet.PacketCustom)

Example 3 with PacketCustom

use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.

the class NEICPH method sendSetSlot.

public static void sendSetSlot(int slot, ItemStack stack, boolean container) {
    PacketCustom packet = new PacketCustom(channel, 5);
    packet.writeBoolean(container);
    packet.writeShort(slot);
    packet.writeItemStack(stack);
    packet.sendToServer();
}
Also used : PacketCustom(codechicken.lib.packet.PacketCustom)

Example 4 with PacketCustom

use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.

the class NEICPH method sendSetTime.

public static void sendSetTime(int hour) {
    PacketCustom packet = new PacketCustom(channel, 7);
    packet.writeByte(hour);
    packet.sendToServer();
}
Also used : PacketCustom(codechicken.lib.packet.PacketCustom)

Example 5 with PacketCustom

use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.

the class NEICPH method sendRequestLoginInfo.

private static void sendRequestLoginInfo() {
    PacketCustom packet = new PacketCustom(channel, 10);
    packet.sendToServer();
}
Also used : PacketCustom(codechicken.lib.packet.PacketCustom)

Aggregations

PacketCustom (codechicken.lib.packet.PacketCustom)27 EntityPlayerMP (net.minecraft.entity.player.EntityPlayerMP)3 ItemStack (net.minecraft.item.ItemStack)3 IGuiPacketSender (codechicken.core.IGuiPacketSender)2 LinkedList (java.util.LinkedList)1 Set (java.util.Set)1 InventoryBasic (net.minecraft.inventory.InventoryBasic)1 ChatComponentTranslation (net.minecraft.util.ChatComponentTranslation)1