Search in sources :

Example 1 with MembershipAppliedGui

use of com.almuradev.almura.feature.membership.client.gui.MembershipAppliedGui in project Almura by AlmuraDev.

the class ClientboundMembershipSuccessPacketHandler method handleMessage.

@Override
public void handleMessage(ClientboundMembershipSuccessPacket 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;
            new MembershipAppliedGui(null, message.membership).display();
        }
    }
}
Also used : EntityPlayerSP(net.minecraft.client.entity.EntityPlayerSP) Minecraft(net.minecraft.client.Minecraft) MembershipAppliedGui(com.almuradev.almura.feature.membership.client.gui.MembershipAppliedGui)

Aggregations

MembershipAppliedGui (com.almuradev.almura.feature.membership.client.gui.MembershipAppliedGui)1 Minecraft (net.minecraft.client.Minecraft)1 EntityPlayerSP (net.minecraft.client.entity.EntityPlayerSP)1