use of logisticspipes.modules.ModuleProvider in project LogisticsPipes by RS485.
the class ProviderModuleGuiProvider method getClientGui.
@Override
public Object getClientGui(EntityPlayer player) {
ModuleProvider module = this.getLogisticsModule(player.getEntityWorld(), ModuleProvider.class);
if (module == null) {
return null;
}
module.setFilterExcluded(exclude);
module.setExtractionMode(extractorMode);
module.setSneakyDirection(sneakyOrientation);
module.setIsActive(isActive);
return new logisticspipes.gui.modules.GuiProvider(player.inventory, module);
}
use of logisticspipes.modules.ModuleProvider in project LogisticsPipes by RS485.
the class ProviderModuleNextModePacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
final ModuleProvider module = this.getLogisticsModule(player, ModuleProvider.class);
if (module == null) {
return;
}
module.nextExtractionMode();
MainProxy.sendPacketToPlayer(PacketHandler.getPacket(ProviderModuleMode.class).setMode(module.getExtractionMode().ordinal()).setModulePos(module), player);
}
Aggregations