Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mightydanp.eot.core.handler;
- import java.util.HashMap;
- import com.mightydanp.eot.core.client.gui.container.ContainterEotInventory;
- import com.mightydanp.eot.core.client.gui.inventory.TileEntityEotInventory;
- import com.mightydanp.eot.core.entities.player.EotPlayerStatus;
- import com.mightydanp.eot.lib.GuiIds;
- 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 eotGuiHandler implements IGuiHandler {
- private static HashMap<Integer, IGuiHandler> serverGuiHandlers = new HashMap<Integer, IGuiHandler>();
- private static HashMap<Integer, IGuiHandler> clientGuiHandlers = new HashMap<Integer, IGuiHandler>();
- public void initialize (){}
- protected void registerGuiHandler (){}
- @Override
- public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
- IGuiHandler handler = serverGuiHandlers.get(ID);
- if (handler != null)
- return handler.getServerGuiElement(ID, player, world, x, y, z);
- return null;
- }
- @Override
- public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
- return null;
- }
- public static void registerServerGuiHandler (int gui, IGuiHandler handler)
- {
- serverGuiHandlers.put(gui, handler);
- }
- public static void registerClientGuiHandler (int gui, IGuiHandler handler)
- {
- clientGuiHandlers.put(gui, handler);
- }
- public void updatePlayerStats(EotPlayerStatus stats) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement