Interface Packet

All Known Subinterfaces:
BundlePacket, ContainerSetSlotPacket, GameEventPacket, PingPacket, PlayerInfoRemovePacket, PlayerInfoUpdatePacket, SetChunkCacheRadiusPacket, SetDisplayObjectivePacket, SetEntityMotionPacket, SetPlayerTeamPacket

@NullMarked public interface Packet
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Packet API Version
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    패킷이 빌드 가능한지 확인합니다.
    패킷을 가져옵니다.
  • Field Details

  • Method Details

    • getPacket

      Object getPacket()
      패킷을 가져옵니다.
      Returns:
      패킷 인스턴스를 반환합니다.
      Throws:
      RuntimeException - 패킷 빌드가 불가능한 경우 던져집니다.
    • canBuild

      boolean canBuild()
      패킷이 빌드 가능한지 확인합니다.
      Returns:
      빌드가 가능하면 true를 반환합니다.