use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.
the class NEICPH method sendMobSpawnerID.
public static void sendMobSpawnerID(int x, int y, int z, String mobtype) {
PacketCustom packet = new PacketCustom(channel, 15);
packet.writeCoord(x, y, z);
packet.writeString(mobtype);
packet.sendToServer();
}
use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.
the class NEICPH method sendGiveItem.
public static void sendGiveItem(ItemStack spawnstack, boolean infinite, boolean doSpawn) {
PacketCustom packet = new PacketCustom(channel, 1);
packet.writeItemStack(spawnstack);
packet.writeBoolean(infinite);
packet.writeBoolean(doSpawn);
packet.sendToServer();
}
use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.
the class NEICPH method sendStateLoad.
public static void sendStateLoad(ItemStack[] state) {
sendDeleteAllItems();
for (int slot = 0; slot < state.length; slot++) {
ItemStack item = state[slot];
if (item == null) {
continue;
}
sendSetSlot(slot, item, false);
}
PacketCustom packet = new PacketCustom(channel, 11);
packet.sendToServer();
}
use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.
the class NEICPH method sendModifyEnchantment.
public static void sendModifyEnchantment(int enchID, int level, boolean add) {
PacketCustom packet = new PacketCustom(channel, 22);
packet.writeByte(enchID);
packet.writeByte(level);
packet.writeBoolean(add);
packet.sendToServer();
}
use of codechicken.lib.packet.PacketCustom in project Galacticraft by micdoodle8.
the class NEICPH method sendCreativeScroll.
public static void sendCreativeScroll(int steps) {
PacketCustom packet = new PacketCustom(channel, 14);
packet.writeInt(steps);
packet.sendToServer();
}
Aggregations