use of network.rs485.logisticspipes.module.SneakyDirection in project LogisticsPipes by RS485.
the class SneakyModuleDirectionUpdate method processPacket.
@Override
public void processPacket(EntityPlayer player) {
SneakyDirection sneakyModule = this.getLogisticsModule(player, SneakyDirection.class);
if (sneakyModule == null) {
return;
}
sneakyModule.setSneakyDirection(getDirection());
}
use of network.rs485.logisticspipes.module.SneakyDirection in project LogisticsPipes by RS485.
the class SneakyModuleInSlotGuiProvider method getClientGui.
@Override
public Object getClientGui(EntityPlayer player) {
LogisticsModule module = this.getLogisticsModule(player.getEntityWorld(), LogisticsModule.class);
if (!(module instanceof SneakyDirection && module instanceof Gui)) {
return null;
}
((SneakyDirection) module).setSneakyDirection(sneakyOrientation);
return new GuiSneakyConfigurator(player.inventory, module);
}
Aggregations