use of logisticspipes.logic.interfaces.ILogicControllerTile in project LogisticsPipes by RS485.
the class LogicControllerPacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
ILogicControllerTile tile = this.getTile(player.getEntityWorld(), ILogicControllerTile.class);
if (tile == null) {
return;
}
NewGuiHandler.getGui(LogicControllerGuiProvider.class).setTilePos((TileEntity) tile).open(player);
}
use of logisticspipes.logic.interfaces.ILogicControllerTile in project LogisticsPipes by RS485.
the class LogicControllerGuiProvider method getContainer.
@Override
public Container getContainer(EntityPlayer player) {
TileEntity pipe = this.getTile(player.getEntityWorld(), TileEntity.class);
if (pipe instanceof ILogicControllerTile) {
LogicController controller = ((ILogicControllerTile) pipe).getLogicController();
DummyContainer dummy = new DummyContainer(player.inventory, null);
dummy.addNormalSlotsForPlayerInventory(50, 190);
return dummy;
}
return null;
}
Aggregations