use of logisticspipes.interfaces.IWatchingHandler in project LogisticsPipes by RS485.
the class HUDStopWatchingPacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
if (pipe == null) {
return;
}
if (pipe.pipe instanceof IWatchingHandler) {
IWatchingHandler handler = (IWatchingHandler) pipe.pipe;
handler.playerStopWatching(player, getInteger());
}
}
use of logisticspipes.interfaces.IWatchingHandler in project LogisticsPipes by RS485.
the class HUDStartWatchingPacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
if (pipe == null) {
return;
}
if (pipe.pipe instanceof IWatchingHandler) {
IWatchingHandler handler = (IWatchingHandler) pipe.pipe;
handler.playerStartWatching(player, getInteger());
}
}
Aggregations