use of logisticspipes.modules.ModuleItemSink in project LogisticsPipes by RS485.
the class ItemSinkDefault method processPacket.
@Override
public void processPacket(EntityPlayer player) {
ModuleItemSink module = this.getLogisticsModule(player, ModuleItemSink.class);
if (module == null) {
return;
}
module.setDefaultRoute(isFlag());
}
use of logisticspipes.modules.ModuleItemSink in project LogisticsPipes by RS485.
the class ItemSinkInHand method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
DummyContainer dummy = new DummyModuleContainer(player, getInvSlot());
if (!(((DummyModuleContainer) dummy).getModule() instanceof ModuleItemSink)) {
return null;
}
((DummyModuleContainer) dummy).setInventory(((ModuleItemSink) ((DummyModuleContainer) dummy).getModule()).getFilterInventory());
dummy.addNormalSlotsForPlayerInventory(8, 60);
//Pipe slots
for (int pipeSlot = 0; pipeSlot < 9; pipeSlot++) {
dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
}
return dummy;
}
Aggregations