use of logisticspipes.utils.DummyWorldProvider in project LogisticsPipes by RS485.
the class ModuleInHandGuiProvider method getLogisticsModule.
public final LogisticsModule getLogisticsModule(EntityPlayer player) {
ItemStack item = player.inventory.mainInventory[invSlot];
if (item == null) {
return null;
}
LogisticsModule module = LogisticsPipes.ModuleItem.getModuleForItem(item, null, new DummyWorldProvider(player.getEntityWorld()), null);
module.registerPosition(ModulePositionType.IN_HAND, invSlot);
ItemModuleInformationManager.readInformation(item, module);
return module;
}
Aggregations