use of logisticspipes.network.abstractguis.UpgradeCoordinatesGuiProvider in project LogisticsPipes by RS485.
the class OpenUpgradePacket method processPacket.
@Override
public void processPacket(EntityPlayer player) {
UpgradeSlot slot = getSlot(player, UpgradeSlot.class);
IPipeUpgrade upgrade = slot.getUpgrade();
if (upgrade instanceof IConfigPipeUpgrade) {
UpgradeCoordinatesGuiProvider gui = ((IConfigPipeUpgrade) upgrade).getGUI();
if (gui != null) {
gui.setSlot(slot).setLPPos(slot.getManager().getPipePosition()).open(player);
}
}
}
Aggregations