ActuallyAdditions/src/main/java/ellpeck/someprettytechystuff/inventory/GuiHandler.java

32 lines
1 KiB
Java
Raw Normal View History

2015-01-05 22:14:01 +01:00
package ellpeck.someprettytechystuff.inventory;
2014-12-18 19:24:06 +01:00
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.common.network.NetworkRegistry;
2015-01-05 22:50:20 +01:00
import ellpeck.someprettytechystuff.SPTS;
2015-01-05 22:14:01 +01:00
import ellpeck.someprettytechystuff.tile.TileEntityBase;
2014-12-18 19:24:06 +01:00
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class GuiHandler implements IGuiHandler {
public Object getServerGuiElement(int id, EntityPlayer entityPlayer, World world, int x, int y, int z) {
TileEntityBase tile = (TileEntityBase)world.getTileEntity(x, y, z);
switch (id) {
default:
return null;
}
}
public Object getClientGuiElement(int id, EntityPlayer entityPlayer, World world, int x, int y, int z) {
TileEntityBase tile = (TileEntityBase)world.getTileEntity(x, y, z);
switch (id) {
default:
return null;
}
}
public static void init(){
2015-01-05 22:50:20 +01:00
NetworkRegistry.INSTANCE.registerGuiHandler(SPTS.instance, new GuiHandler());
2014-12-18 19:24:06 +01:00
}
}