Search in sources :

Example 1 with LogisticsProgramCompilerTileEntity

use of logisticspipes.blocks.LogisticsProgramCompilerTileEntity in project LogisticsPipes by RS485.

the class CompilerStatusPacket method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    LogisticsProgramCompilerTileEntity tile = this.getTileAs(player.world, LogisticsProgramCompilerTileEntity.class);
    tile.setStateOnClient(this);
}
Also used : LogisticsProgramCompilerTileEntity(logisticspipes.blocks.LogisticsProgramCompilerTileEntity)

Example 2 with LogisticsProgramCompilerTileEntity

use of logisticspipes.blocks.LogisticsProgramCompilerTileEntity in project LogisticsPipes by RS485.

the class ProgramCompilerGui method getContainer.

@Override
public Container getContainer(EntityPlayer player) {
    LogisticsProgramCompilerTileEntity compilerBlock = getTileAs(player.world, LogisticsProgramCompilerTileEntity.class);
    DummyContainer dummy = new DummyContainer(player, null, compilerBlock);
    dummy.addRestrictedSlot(0, compilerBlock.getInventory(), 10, 10, LPItems.disk);
    dummy.addRestrictedSlot(1, compilerBlock.getInventory(), 154, 10, LPItems.logisticsProgrammer);
    dummy.addNormalSlotsForPlayerInventory(10, 45);
    return dummy;
}
Also used : DummyContainer(logisticspipes.utils.gui.DummyContainer) LogisticsProgramCompilerTileEntity(logisticspipes.blocks.LogisticsProgramCompilerTileEntity)

Example 3 with LogisticsProgramCompilerTileEntity

use of logisticspipes.blocks.LogisticsProgramCompilerTileEntity in project LogisticsPipes by RS485.

the class CompilerTriggerTaskPacket method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    LogisticsProgramCompilerTileEntity tile = this.getTileAs(player.world, LogisticsProgramCompilerTileEntity.class);
    tile.triggerNewTask(getCategory(), getType());
}
Also used : LogisticsProgramCompilerTileEntity(logisticspipes.blocks.LogisticsProgramCompilerTileEntity)

Aggregations

LogisticsProgramCompilerTileEntity (logisticspipes.blocks.LogisticsProgramCompilerTileEntity)3 DummyContainer (logisticspipes.utils.gui.DummyContainer)1