use of logisticspipes.proxy.buildcraft.subproxies.LPBCTileGenericPipe in project LogisticsPipes by RS485.
the class LogisticsTriggerProvider method getInternalTriggers.
@Override
public Collection<ITriggerInternal> getInternalTriggers(IStatementContainer pipe) {
if (pipe.getTile() instanceof LPBCTileGenericPipe) {
LogisticsTileGenericPipe lPipe = ((LPBCTileGenericPipe) pipe.getTile()).getLpPipe();
LinkedList<ITriggerInternal> triggers = new LinkedList<>();
if (lPipe.pipe instanceof PipeItemsSupplierLogistics || lPipe.pipe instanceof PipeItemsFluidSupplier) {
triggers.add(BuildCraftProxy.LogisticsFailedTrigger);
}
if (lPipe.pipe instanceof PipeItemsCraftingLogistics) {
triggers.add(BuildCraftProxy.LogisticsCraftingTrigger);
}
if (lPipe.pipe instanceof CoreRoutedPipe) {
//Only show this conditional on Gates that can accept parameters
triggers.add(BuildCraftProxy.LogisticsHasDestinationTrigger);
}
if (!triggers.isEmpty()) {
return triggers;
}
}
return null;
}
Aggregations