2015-01-30 20:16:32 +01:00
|
|
|
package ellpeck.someprettyrandomstuff.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-30 20:16:32 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.SPTS;
|
|
|
|
import ellpeck.someprettyrandomstuff.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
|
|
|
}
|
|
|
|
}
|