use of logisticspipes.modules.ModuleApiaristSink in project LogisticsPipes by RS485.
the class ApiaristSinkModuleSlot method getClientGui.
@Override
public Object getClientGui(EntityPlayer player) {
ModuleApiaristSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleApiaristSink.class);
if (module == null) {
return null;
}
module.readFromNBT(getNbt());
return new GuiApiaristSink(module, player);
}
use of logisticspipes.modules.ModuleApiaristSink in project LogisticsPipes by RS485.
the class ApiaristSinkModuleInHand method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
SimpleServiceLocator.forestryProxy.syncTracker(player.getEntityWorld(), player);
DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
if (!(dummy.getModule() instanceof ModuleApiaristSink)) {
return null;
}
return dummy;
}
use of logisticspipes.modules.ModuleApiaristSink in project LogisticsPipes by RS485.
the class ApiaristSinkModuleSlot method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
SimpleServiceLocator.forestryProxy.syncTracker(player.getEntityWorld(), player);
ModuleApiaristSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleApiaristSink.class);
if (module == null) {
return null;
}
return new DummyContainer(player.inventory, null);
}
Aggregations