Class PlayerPacketHandler

java.lang.Object
org.cloudburstmc.server.player.handler.PlayerPacketHandler
All Implemented Interfaces:
com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler, com.nukkitx.protocol.PacketHandler

public class PlayerPacketHandler extends Object implements com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
Author:
Extollite
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.nukkitx.math.vector.Vector3i
     
    protected double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handle​(com.nukkitx.protocol.bedrock.BedrockPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.AdventureSettingsPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.AnimatePacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.BlockEntityDataPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.BlockPickRequestPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.CommandRequestPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.ContainerClosePacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.CraftingEventPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.EmotePacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.EntityEventPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.InteractPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.InventoryTransactionPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.ItemFrameDropItemPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.ItemStackRequestPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.LecternUpdatePacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.LevelSoundEvent2Packet packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.MapInfoRequestPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.MobEquipmentPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.ModalFormResponsePacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.MovePlayerPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.PacketViolationWarningPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.PlayerActionPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.PlayerHotbarPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.PlayerInputPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.PlayerSkinPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.RequestChunkRadiusPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.RespawnPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.ServerSettingsRequestPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.SetHealthPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.SetLocalPlayerAsInitializedPacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.SetPlayerGameTypePacket packet)
     
    boolean
    handle​(com.nukkitx.protocol.bedrock.packet.TextPacket packet)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler

    handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle
  • Field Details

    • lastRightClickPos

      protected com.nukkitx.math.vector.Vector3i lastRightClickPos
    • lastRightClickTime

      protected double lastRightClickTime
  • Constructor Details

    • PlayerPacketHandler

      public PlayerPacketHandler(CloudPlayer player)
  • Method Details

    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.BedrockPacket packet)
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.PlayerSkinPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.PlayerInputPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.MovePlayerPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.AdventureSettingsPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.EmotePacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.PacketViolationWarningPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.MobEquipmentPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.PlayerActionPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.ModalFormResponsePacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.InteractPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.BlockPickRequestPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.AnimatePacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.SetHealthPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.EntityEventPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.CommandRequestPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.TextPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.ContainerClosePacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.CraftingEventPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.BlockEntityDataPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.RequestChunkRadiusPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.SetPlayerGameTypePacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.ItemFrameDropItemPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.MapInfoRequestPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.LevelSoundEvent2Packet packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.ItemStackRequestPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.InventoryTransactionPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.PlayerHotbarPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.ServerSettingsRequestPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.RespawnPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.LecternUpdatePacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler
    • handle

      public boolean handle(com.nukkitx.protocol.bedrock.packet.SetLocalPlayerAsInitializedPacket packet)
      Specified by:
      handle in interface com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler