use of logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule in project LogisticsPipes by RS485.
the class ExtractorModuleSlot method getClientGui.
@Override
public Object getClientGui(EntityPlayer player) {
LogisticsSneakyDirectionModule module = this.getLogisticsModule(player.getEntityWorld(), LogisticsSneakyDirectionModule.class);
if (module == null) {
return null;
}
module.setSneakyDirection(sneakyOrientation);
return new GuiExtractor(player.inventory, module);
}
use of logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule in project LogisticsPipes by RS485.
the class ExtractorModuleDirectionPacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
final LogisticsSneakyDirectionModule module = this.getLogisticsModule(player, LogisticsSneakyDirectionModule.class);
if (module == null) {
return;
}
module.setSneakyDirection(getDirection());
MainProxy.sendPacketToPlayer(PacketHandler.getPacket(ExtractorModuleMode.class).setDirection(module.getSneakyDirection()).setPacketPos(this), player);
}
use of logisticspipes.modules.abstractmodules.LogisticsSneakyDirectionModule in project LogisticsPipes by RS485.
the class ExtractorModuleMode method processPacket.
@Override
public void processPacket(EntityPlayer player) {
LogisticsSneakyDirectionModule recieiver = this.getLogisticsModule(player, LogisticsSneakyDirectionModule.class);
if (recieiver == null) {
return;
}
recieiver.setSneakyDirection(getDirection());
}
Aggregations