use of logisticspipes.pipes.basic.LogisticsTileGenericPipe in project LogisticsPipes by RS485.
the class HUDStartWatchingPacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
final LogisticsTileGenericPipe pipe = this.getPipe(player.world);
if (pipe == null) {
return;
}
if (pipe.pipe instanceof IWatchingHandler) {
IWatchingHandler handler = (IWatchingHandler) pipe.pipe;
handler.playerStartWatching(player, getInteger());
}
}
use of logisticspipes.pipes.basic.LogisticsTileGenericPipe in project LogisticsPipes by RS485.
the class PipeSolidSideCheck method processPacket.
@Override
public void processPacket(EntityPlayer player) {
LogisticsTileGenericPipe pipe = this.getPipe(player.world, LTGPCompletionCheck.PIPE);
pipe.renderState.checkForRenderUpdate(player.world, pipe.getPos());
}
use of logisticspipes.pipes.basic.LogisticsTileGenericPipe in project LogisticsPipes by RS485.
the class PipeDebugLogResponse method processPacket.
@Override
public void processPacket(EntityPlayer player) {
LogisticsTileGenericPipe tile = this.getPipe(player.getEntityWorld());
if (tile != null) {
((CoreRoutedPipe) tile.pipe).debug.openForPlayer(player);
player.sendMessage(new TextComponentString("Debug log enabled."));
}
}
use of logisticspipes.pipes.basic.LogisticsTileGenericPipe in project LogisticsPipes by RS485.
the class InvSysConResistance method processPacket.
@Override
public void processPacket(EntityPlayer player) {
if (MainProxy.isClient(player.world)) {
final LogisticsTileGenericPipe pipe = this.getPipe(player.world);
if (pipe == null) {
return;
}
if (pipe.pipe instanceof PipeItemsInvSysConnector) {
PipeItemsInvSysConnector invCon = (PipeItemsInvSysConnector) pipe.pipe;
invCon.resistance = getInteger();
}
} else {
final LogisticsTileGenericPipe pipe = this.getPipe(player.world);
if (pipe == null) {
return;
}
if (pipe.pipe instanceof PipeItemsInvSysConnector) {
PipeItemsInvSysConnector invCon = (PipeItemsInvSysConnector) pipe.pipe;
invCon.resistance = getInteger();
invCon.getRouter().update(true, invCon);
}
}
}
use of logisticspipes.pipes.basic.LogisticsTileGenericPipe in project LogisticsPipes by RS485.
the class ItemAmountSignUpdatePacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
if (pipe == null || !pipe.isInitialized()) {
return;
}
IPipeSign sign = ((CoreRoutedPipe) pipe.pipe).getPipeSign(EnumFacing.getFront(getInteger()));
if (sign == null) {
return;
}
((ItemAmountPipeSign) sign).amount = getInteger2();
((ItemAmountPipeSign) sign).itemTypeInv.setInventorySlotContents(0, stack);
}
Aggregations