package matgm50.wanderer.client.gui; import net.minecraftforge.fml.common.network.IGuiHandler; import net.minecraftforge.fml.common.network.NetworkRegistry; import matgm50.wanderer.Wanderer; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; public class GuiHandler implements IGuiHandler { public static void init() { NetworkRegistry.INSTANCE.registerGuiHandler(Wanderer.instance, new GuiHandler()); } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { switch(ID) { case 0 : return new GuiScroll(player); } return null; } }