Class AbstractProtocol.ProtocolPacket

    • Constructor Detail

      • ProtocolPacket

        @Deprecated
        public ProtocolPacket​(State state,
                              int oldId,
                              int newId,
                              @Nullable PacketRemapper remapper)
        Deprecated.
    • Method Detail

      • getState

        public State getState()
      • getOldId

        @Deprecated
        public int getOldId()
        Deprecated.
      • getNewId

        @Deprecated
        public int getNewId()
        Deprecated.
      • getUnmappedPacketType

        public @Nullable PacketType getUnmappedPacketType()
        Returns the unmapped packet type, or null if mapped over ids. This is NOT the same as calling getOldId() (think of unmapped vs. old in 1.17->1.16).
        Returns:
        unmapped packet type, or null if mapped over ids
      • getMappedPacketType

        public @Nullable PacketType getMappedPacketType()
        Returns the mapped packet type, or null if mapped over ids or mapped to no packet type. This is NOT the same as calling getNewId() (think of mapped vs. new in 1.17->1.16).
        Returns:
        new packet type, or null if mapped over ids or mapped to no packet type
      • isMappedOverTypes

        public boolean isMappedOverTypes()