Java 类net.minecraft.network.play.client.C13PacketPlayerAbilities 实例源码

项目:Cauldron    文件:NetHandlerPlayServer.java   
public void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_)
{
    // CraftBukkit start - d() should be isFlying()
    if (this.playerEntity.capabilities.allowFlying && this.playerEntity.capabilities.isFlying != p_147348_1_.func_149488_d())
    {
        PlayerToggleFlightEvent event = new PlayerToggleFlightEvent(this.server.getPlayer(this.playerEntity), p_147348_1_.func_149488_d());
        this.server.getPluginManager().callEvent(event);

        if (!event.isCancelled())
        {
            this.playerEntity.capabilities.isFlying = p_147348_1_.func_149488_d(); // Actually set the player's flying status
        }
        else
        {
            this.playerEntity.sendPlayerAbilities(); // Tell the player their ability was reverted
        }
    }

    // CraftBukkit end
}
项目:DecompiledMinecraft    文件:NetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
public void processPlayerAbilities(C13PacketPlayerAbilities packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    this.playerEntity.capabilities.isFlying = packetIn.isFlying() && this.playerEntity.capabilities.allowFlying;
}
项目:DecompiledMinecraft    文件:NetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
public void processPlayerAbilities(C13PacketPlayerAbilities packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    this.playerEntity.capabilities.isFlying = packetIn.isFlying() && this.playerEntity.capabilities.allowFlying;
}
项目:DecompiledMinecraft    文件:EntityPlayerSP.java   
/**
 * Sends the player's abilities to the server (if there is one).
 */
public void sendPlayerAbilities()
{
    this.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(this.capabilities));
}
项目:BaseClient    文件:NetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
public void processPlayerAbilities(C13PacketPlayerAbilities packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    this.playerEntity.capabilities.isFlying = packetIn.isFlying() && this.playerEntity.capabilities.allowFlying;
}
项目:BaseClient    文件:EntityPlayerSP.java   
/**
 * Sends the player's abilities to the server (if there is one).
 */
public void sendPlayerAbilities()
{
    this.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(this.capabilities));
}
项目:BaseClient    文件:NetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
public void processPlayerAbilities(C13PacketPlayerAbilities packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    this.playerEntity.capabilities.isFlying = packetIn.isFlying() && this.playerEntity.capabilities.allowFlying;
}
项目:BaseClient    文件:EntityPlayerSP.java   
/**
 * Sends the player's abilities to the server (if there is one).
 */
public void sendPlayerAbilities() {
    this.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(this.capabilities));
}
项目:Resilience-Client-Source    文件:NetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
public void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_)
{
    this.playerEntity.capabilities.isFlying = p_147348_1_.func_149488_d() && this.playerEntity.capabilities.allowFlying;
}
项目:Resilience-Client-Source    文件:EntityClientPlayerMP.java   
/**
 * Sends the player's abilities to the server (if there is one).
 */
public void sendPlayerAbilities()
{
    this.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(this.capabilities));
}
项目:Gadomancy    文件:FakeNetServerHandler.java   
@Override
public void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_) {
}
项目:Cauldron    文件:EntityClientPlayerMP.java   
public void sendPlayerAbilities()
{
    this.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(this.capabilities));
}
项目:Cauldron    文件:NetHandlerPlayServer.java   
public void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_)
{
    this.playerEntity.capabilities.isFlying = p_147348_1_.func_149488_d() && this.playerEntity.capabilities.allowFlying;
}
项目:Cauldron    文件:EntityClientPlayerMP.java   
public void sendPlayerAbilities()
{
    this.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(this.capabilities));
}
项目:DecompiledMinecraft    文件:INetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
void processPlayerAbilities(C13PacketPlayerAbilities packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
void processPlayerAbilities(C13PacketPlayerAbilities packetIn);
项目:BaseClient    文件:INetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
void processPlayerAbilities(C13PacketPlayerAbilities packetIn);
项目:BaseClient    文件:INetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
void processPlayerAbilities(C13PacketPlayerAbilities packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayServer.java   
/**
 * Processes a player starting/stopping flying
 */
void processPlayerAbilities(C13PacketPlayerAbilities var1);
项目:Cauldron    文件:INetHandlerPlayServer.java   
void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_);
项目:Cauldron    文件:INetHandlerPlayServer.java   
void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_);