use of buildcraft.transport.statements.ActionPipeColor in project BuildCraft by BuildCraft.
the class PipeBehaviourDaizuli method onActionActivate.
@Override
public void onActionActivate(PipeEventActionActivate event) {
super.onActionActivate(event);
if (event.action instanceof ActionPipeColor) {
ActionPipeColor action = ((ActionPipeColor) event.action);
if (this.colour != action.color) {
this.colour = action.color;
pipe.getHolder().scheduleNetworkUpdate(PipeMessageReceiver.BEHAVIOUR);
}
}
}
use of buildcraft.transport.statements.ActionPipeColor in project BuildCraft by BuildCraft.
the class PipeBehaviourLapis method onActionActivated.
@PipeEventHandler
public void onActionActivated(PipeEventActionActivate event) {
if (event.action instanceof ActionPipeColor) {
ActionPipeColor action = ((ActionPipeColor) event.action);
if (this.colour != action.color) {
this.colour = action.color;
pipe.getHolder().scheduleNetworkUpdate(PipeMessageReceiver.BEHAVIOUR);
}
}
}
Aggregations