Search in sources :

Example 1 with FeatureScreen

use of com.almuradev.almura.feature.menu.ingame.FeatureScreen in project Almura by AlmuraDev.

the class ClientboundFeaturesOpenResponsePacketHandler method handleMessage.

@Override
public void handleMessage(ClientboundFeaturesOpenResponsePacket 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;
            final boolean isAdmin = message.admin;
            new FeatureScreen(player, world, isAdmin).display();
        }
    }
}
Also used : FeatureScreen(com.almuradev.almura.feature.menu.ingame.FeatureScreen) EntityPlayerSP(net.minecraft.client.entity.EntityPlayerSP) Minecraft(net.minecraft.client.Minecraft) WorldClient(net.minecraft.client.multiplayer.WorldClient)

Aggregations

FeatureScreen (com.almuradev.almura.feature.menu.ingame.FeatureScreen)1 Minecraft (net.minecraft.client.Minecraft)1 EntityPlayerSP (net.minecraft.client.entity.EntityPlayerSP)1 WorldClient (net.minecraft.client.multiplayer.WorldClient)1