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();
}
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();
}
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();
}
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();
}
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();
}
Aggregations