/** * Processes a player starting/stopping flying */ public void processPlayerAbilities(CPacketPlayerAbilities packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld()); 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.connection.sendPacket(new CPacketPlayerAbilities(this.capabilities)); }
@Override public void processPlayerAbilities(CPacketPlayerAbilities p_147348_1_) { }
@Override public void processPlayerAbilities(@Nonnull CPacketPlayerAbilities p_147348_1_) { }
@Override public void processPlayerAbilities(CPacketPlayerAbilities packetIn) { }
/** * Processes a player starting/stopping flying */ void processPlayerAbilities(CPacketPlayerAbilities packetIn);