use of logisticspipes.interfaces.routing.IRequireReliableTransport in project LogisticsPipes by RS485.
the class PipeLogisticsChassi method itemArrived.
@Override
public void itemArrived(ItemIdentifierStack item, IAdditionalTargetInformation info) {
if (MainProxy.isServer(getWorld())) {
if (info instanceof ChassiTargetInformation) {
ChassiTargetInformation target = (ChassiTargetInformation) info;
LogisticsModule module = _module.getSubModule(target.moduleSlot);
if (module instanceof IRequireReliableTransport) {
((IRequireReliableTransport) module).itemArrived(item, info);
}
} else {
if (LPConstants.DEBUG && info != null) {
System.out.println(item);
new RuntimeException("[ItemArrived] Information weren't ment for a chassi pipe").printStackTrace();
}
}
}
}
use of logisticspipes.interfaces.routing.IRequireReliableTransport in project LogisticsPipes by RS485.
the class PipeLogisticsChassis method itemArrived.
@Override
public void itemArrived(ItemIdentifierStack item, IAdditionalTargetInformation info) {
if (MainProxy.isServer(getWorld())) {
if (info instanceof ChassiTargetInformation) {
ChassiTargetInformation target = (ChassiTargetInformation) info;
LogisticsModule module = getSubModule(target.moduleSlot);
if (module instanceof IRequireReliableTransport) {
((IRequireReliableTransport) module).itemArrived(item, info);
}
} else {
if (LogisticsPipes.isDEBUG() && info != null) {
System.out.println(item);
new RuntimeException("[ItemArrived] Information weren't ment for a chassi pipe").printStackTrace();
}
}
}
}
use of logisticspipes.interfaces.routing.IRequireReliableTransport in project LogisticsPipes by RS485.
the class PipeLogisticsChassis method itemLost.
@Override
public void itemLost(ItemIdentifierStack item, IAdditionalTargetInformation info) {
if (MainProxy.isServer(getWorld())) {
if (info instanceof ChassiTargetInformation) {
ChassiTargetInformation target = (ChassiTargetInformation) info;
LogisticsModule module = getSubModule(target.moduleSlot);
if (module instanceof IRequireReliableTransport) {
((IRequireReliableTransport) module).itemLost(item, info);
}
} else {
if (LogisticsPipes.isDEBUG()) {
System.out.println(item);
new RuntimeException("[ItemLost] Information weren't ment for a chassi pipe").printStackTrace();
}
}
}
}
use of logisticspipes.interfaces.routing.IRequireReliableTransport in project LogisticsPipes by RS485.
the class PipeLogisticsChassi method itemLost.
@Override
public void itemLost(ItemIdentifierStack item, IAdditionalTargetInformation info) {
if (MainProxy.isServer(getWorld())) {
if (info instanceof ChassiTargetInformation) {
ChassiTargetInformation target = (ChassiTargetInformation) info;
LogisticsModule module = _module.getSubModule(target.moduleSlot);
if (module instanceof IRequireReliableTransport) {
((IRequireReliableTransport) module).itemLost(item, info);
}
} else {
if (LPConstants.DEBUG) {
System.out.println(item);
new RuntimeException("[ItemLost] Information weren't ment for a chassi pipe").printStackTrace();
}
}
}
}
Aggregations