mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-05-23 17:43:37 +02:00
32 lines
1 KiB
Java
32 lines
1 KiB
Java
package ellpeck.someprettytechystuff.inventory;
|
|
|
|
import cpw.mods.fml.common.network.IGuiHandler;
|
|
import cpw.mods.fml.common.network.NetworkRegistry;
|
|
import ellpeck.someprettytechystuff.SPTS;
|
|
import ellpeck.someprettytechystuff.tile.TileEntityBase;
|
|
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(){
|
|
NetworkRegistry.INSTANCE.registerGuiHandler(SPTS.instance, new GuiHandler());
|
|
}
|
|
}
|