Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import cpw.mods.fml.common.network.IGuiHandler;
- public class TinyHandler implements IGuiHandler {
- @Override
- public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
- TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
- if (tileEntity instanceof TileEntityTiny) {
- return new ContainerTiny((TileEntityTiny) tileEntity, player.inventory);
- }
- return null;
- }
- @Override
- public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
- TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
- if (tileEntity instanceof TileEntityTiny) {
- return new GuiTiny(player.inventory, (TileEntityTiny) tileEntity);
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement