OSDN Git Service

guiの微調整 タブの同期
[chemicraft/chemicraft.git] / common / chemicraft / CommonProxy.java
1 package chemicraft;
2
3 import net.minecraft.src.EntityPlayer;
4 import net.minecraft.src.TileEntity;
5 import net.minecraft.src.World;
6 import cpw.mods.fml.common.FMLCommonHandler;
7 import cpw.mods.fml.common.network.IGuiHandler;
8 import cpw.mods.fml.server.FMLServerHandler;
9
10 public class CommonProxy implements IGuiHandler {
11
12         public void registerRenderInformation(){}
13
14
15
16         @Override
17         public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){
18                 if(!world.blockExists(x, y, z)) return null;
19
20                 TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
21
22                 if(tileEntity instanceof TileEntityScienceCraftingTable){
23                         return new ContainerScienceCraftingTable(player.inventory, (TileEntityScienceCraftingTable)tileEntity);
24                 }
25                 return null;
26         }
27
28
29
30         @Override
31         public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){
32                 return null;
33         }
34
35
36
37         public World getClientWorld(){
38                 return null;
39         }
40 }