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);
}
}
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();
}
}
}
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;
}
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);
}
}
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();
}
}
}
Aggregations