Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package coolalias.inventoryitem;
- import com.Looke81.BioWarfare.BioWarfare;
- import com.Looke81.BioWarfare.container.ContainerMicrobeExtractor;
- import com.Looke81.BioWarfare.tileentity.TileEntityMicrobeExtractor;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.world.World;
- import cpw.mods.fml.common.network.IGuiHandler;
- public class GuiHandler2 implements IGuiHandler
- {
- public void registerRenderers() {}
- @Override
- public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){
- if (ID == BioWarfare.GUI_ITEM_INV) {
- // Use the player's held item to create the inventory
- return new ContainerItem(player, player.inventory, new InventoryItem(player.getHeldItem()));
- }
- return null;
- }
- @Override
- public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){
- if (ID == BioWarfare.GUI_ITEM_INV) {
- // Use the player's held item to create the inventory
- return new ContainerItem(player, player.inventory, new InventoryItem(player.getHeldItem()));
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment