Search in sources :

Example 1 with LogisticsSecurityTileEntity

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

the class SecurityRemoveCCIdPacket method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    LogisticsSecurityTileEntity tile = this.getTile(player.worldObj, LogisticsSecurityTileEntity.class);
    if (tile != null) {
        tile.removeCCFromList(getInteger());
        tile.requestList(player);
    }
}
Also used : LogisticsSecurityTileEntity(logisticspipes.blocks.LogisticsSecurityTileEntity)

Example 2 with LogisticsSecurityTileEntity

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

the class SecurityStationAutoDestroy method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    LogisticsSecurityTileEntity tile = this.getTile(player.worldObj, LogisticsSecurityTileEntity.class);
    if (tile instanceof LogisticsSecurityTileEntity) {
        if (MainProxy.isClient(player.worldObj)) {
            tile.setClientDestroy(getInteger() == 1);
            handleClientSide(player);
        } else {
            tile.changeDestroy();
        }
    }
}
Also used : LogisticsSecurityTileEntity(logisticspipes.blocks.LogisticsSecurityTileEntity)

Example 3 with LogisticsSecurityTileEntity

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

the class SecurityStationGui method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    LogisticsSecurityTileEntity tile = this.getTile(player.getEntityWorld(), LogisticsSecurityTileEntity.class);
    if (tile == null) {
        return null;
    }
    DummyContainer dummy = new DummyContainer(player, null, tile);
    dummy.addRestrictedSlot(0, tile.inv, 50, 50, (Item) null);
    dummy.addNormalSlotsForPlayerInventory(10, 210);
    return dummy;
}
Also used : DummyContainer(logisticspipes.utils.gui.DummyContainer) LogisticsSecurityTileEntity(logisticspipes.blocks.LogisticsSecurityTileEntity)

Example 4 with LogisticsSecurityTileEntity

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

the class SecurityAddCCIdPacket method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    LogisticsSecurityTileEntity tile = this.getTile(player.worldObj, LogisticsSecurityTileEntity.class);
    if (tile != null) {
        tile.addCCToList(getInteger());
        tile.requestList(player);
    }
}
Also used : LogisticsSecurityTileEntity(logisticspipes.blocks.LogisticsSecurityTileEntity)

Example 5 with LogisticsSecurityTileEntity

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

the class SecurityStationCC method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    LogisticsSecurityTileEntity tile = this.getTile(player.worldObj, LogisticsSecurityTileEntity.class);
    if (tile instanceof LogisticsSecurityTileEntity) {
        if (MainProxy.isClient(player.worldObj)) {
            tile.setClientCC(getInteger() == 1);
            handleClientSide(player);
        } else {
            tile.changeCC();
        }
    }
}
Also used : LogisticsSecurityTileEntity(logisticspipes.blocks.LogisticsSecurityTileEntity)

Aggregations

LogisticsSecurityTileEntity (logisticspipes.blocks.LogisticsSecurityTileEntity)5 DummyContainer (logisticspipes.utils.gui.DummyContainer)1