Search in sources :

Example 1 with IWatchingHandler

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());
    }
}
Also used : LogisticsTileGenericPipe(logisticspipes.pipes.basic.LogisticsTileGenericPipe) IWatchingHandler(logisticspipes.interfaces.IWatchingHandler)

Example 2 with IWatchingHandler

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());
    }
}
Also used : LogisticsTileGenericPipe(logisticspipes.pipes.basic.LogisticsTileGenericPipe) IWatchingHandler(logisticspipes.interfaces.IWatchingHandler)

Aggregations

IWatchingHandler (logisticspipes.interfaces.IWatchingHandler)2 LogisticsTileGenericPipe (logisticspipes.pipes.basic.LogisticsTileGenericPipe)2