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

35 lines
1.2 KiB
Java
Raw Normal View History

2015-01-30 20:16:32 +01:00
package ellpeck.someprettyrandomstuff.inventory;
2014-12-18 19:24:06 +01:00
import ellpeck.someprettyrandomstuff.SPRS;
2015-01-30 20:16:32 +01:00
import ellpeck.someprettyrandomstuff.tile.TileEntityBase;
import ellpeck.someprettyrandomstuff.util.Util;
2014-12-18 19:24:06 +01:00
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.BlockPos;
2014-12-18 19:24:06 +01:00
import net.minecraft.world.World;
import net.minecraftforge.fml.common.network.IGuiHandler;
import net.minecraftforge.fml.common.network.NetworkRegistry;
2014-12-18 19:24:06 +01:00
public class GuiHandler implements IGuiHandler{
2014-12-18 19:24:06 +01:00
public Object getServerGuiElement(int id, EntityPlayer entityPlayer, World world, int x, int y, int z) {
TileEntityBase tile = (TileEntityBase)world.getTileEntity(new BlockPos(x, y, z));
2014-12-18 19:24:06 +01:00
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(new BlockPos(x, y, z));
2014-12-18 19:24:06 +01:00
switch (id) {
default:
return null;
}
}
public static void init(){
Util.logInfo("Initializing GuiHandler...");
NetworkRegistry.INSTANCE.registerGuiHandler(SPRS.instance, new GuiHandler());
2014-12-18 19:24:06 +01:00
}
}