mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 15:33:06 +00:00
Added recipe and GUI for powered spawner.
This commit is contained in:
1 parent
db8b914ca6
commit
2ab6085489
7 files changed
+71
-5
No files matched your search
@@ -133,11 +133,19 @@ public class BlockPoweredSpawner extends AbstractMachineBlock<TilePoweredSpawner
|
||||
|
||||
@Override
|
||||
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
if(te instanceof TilePoweredSpawner) {
|
||||
return new ContainerPoweredSpawner(player.inventory, (TilePoweredSpawner)te);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
if(te instanceof TilePoweredSpawner) {
|
||||
return new GuiPoweredSpawner(player.inventory, (TilePoweredSpawner)te);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user