Package logisticspipes.utils

Examples of logisticspipes.utils.DummyWorldProvider


 
  public DummyModuleContainer(EntityPlayer player, int slot) {
    super(player.inventory, null);
    this.slot = slot;
    moduleStack = player.inventory.mainInventory[slot];
    module = LogisticsPipes.ModuleItem.getModuleForItem(moduleStack, null, new DummyWorldProvider(player.worldObj), null);
    module.registerPosition(ModulePositionType.IN_HAND, slot);
    ItemModuleInformationManager.readInformation(moduleStack, module);
  }
View Full Code Here


  }
 
  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;
  }
View Full Code Here

TOP

Related Classes of logisticspipes.utils.DummyWorldProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.