Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SporksGuiHandler implements IGuiHandler{
- public static final int FEEDER_GUI_ID = 0;
- @Override
- public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
- player.addChatComponentMessage(new ChatComponentText("ServerElement called"));
- if (ID == FEEDER_GUI_ID)
- return new ContainerFeeder(player.inventory, (TileEntityFeeder) world.getTileEntity(x, y, z));
- return null;
- }
- @Override
- public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
- //if (ID == FEEDER_GUI_ID)
- player.addChatComponentMessage(new ChatComponentText("getClientGuiElement called, and "+world.getTileEntity(x, y, z)));
- return new ContainerFeeder(player.inventory, (TileEntityFeeder) world.getTileEntity(x,y,z));
- }
- }
Add Comment
Please, Sign In to add comment