Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SideOnly(Side.CLIENT)
- public boolean interact(EntityPlayer player) {
- EntityClientPlayerMP playerMP = (EntityClientPlayerMP) player;
- DataWatcher dw = this.getDataWatcher();
- ByteArrayDataOutput out = ByteStreams.newDataOutput();
- out.writeUTF("chestcommands open " + dw.getWatchableObjectString(21));
- out.writeUTF(dw.getWatchableObjectString(22));
- if (!player.isSneaking()) {
- C17PacketCustomPayload packet = new C17PacketCustomPayload("ForgeToBukkit", out.toByteArray());
- playerMP.sendQueue.addToSendQueue(packet);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement