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 }
/** * 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; }
/** * Sends the player's abilities to the server (if there is one). */ public void sendPlayerAbilities() { this.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(this.capabilities)); }
/** * 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; }
@Override public void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_) { }
public void sendPlayerAbilities() { this.sendQueue.addToSendQueue(new C13PacketPlayerAbilities(this.capabilities)); }
public void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_) { this.playerEntity.capabilities.isFlying = p_147348_1_.func_149488_d() && this.playerEntity.capabilities.allowFlying; }
/** * Processes a player starting/stopping flying */ void processPlayerAbilities(C13PacketPlayerAbilities packetIn);
/** * Processes a player starting/stopping flying */ void processPlayerAbilities(C13PacketPlayerAbilities var1);
void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_);