Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void channelRead0(ChannelHandlerContext ctx, IronChestMessage msg) throws Exception
- {
- System.out.println("Hi from the chest handler");
- World world = IronChest.proxy.getClientWorld();
- TileEntity te = world.getTileEntity(new BlockPos(msg.x, msg.y, msg.z));
- System.out.println(te == null ? "No tile" : te.getClass().getSimpleName());
- if (te instanceof TileEntityIronChest)
- {
- System.out.println("Yep, it's a chest");
- TileEntityIronChest icte = (TileEntityIronChest) te;
- icte.setFacing(msg.facing);
- icte.handlePacketData(msg.type, msg.itemStacks);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement