use of com.almuradev.almura.feature.exchange.client.gui.ExchangeGUI in project Almura by AlmuraDev.
the class ClientboundExchangeOpenResponsePacketHandler method handleMessage.
@Override
public void handleMessage(ClientboundExchangeOpenResponsePacket message, RemoteConnection connection, Platform.Type side) {
if (side.isClient()) {
final Minecraft client = Minecraft.getMinecraft();
if (PacketUtil.checkThreadAndEnqueue(client, message, this, connection, side)) {
final EntityPlayerSP player = client.player;
final WorldClient world = client.world;
if (world != null) {
new ExchangeGUI(player, world, player.getPosition()).display();
}
}
}
}
Aggregations