use of buildcraft.transport.statements.ActionExtractionPreset in project BuildCraft by BuildCraft.
the class PipeBehaviourEmzuli method onActionActivate.
@Override
public void onActionActivate(PipeEventActionActivate event) {
super.onActionActivate(event);
if (event.action instanceof ActionExtractionPreset) {
ActionExtractionPreset preset = (ActionExtractionPreset) event.action;
activeSlots.add(preset.index);
activatedTtl[preset.index.ordinal()] = 2;
}
}
use of buildcraft.transport.statements.ActionExtractionPreset in project BuildCraft by BuildCraft.
the class PipeItemsEmzuli method actionsActivated.
@Override
protected void actionsActivated(Collection<StatementSlot> actions) {
super.actionsActivated(actions);
activeFlags.clear();
for (StatementSlot action : actions) {
if (action.statement instanceof ActionExtractionPreset) {
setActivePreset(((ActionExtractionPreset) action.statement).color);
}
}
}
Aggregations