Class UpdateWorldMapSettings

java.lang.Object
com.hypixel.hytale.protocol.packets.worldmap.UpdateWorldMapSettings
All Implemented Interfaces:
Packet, ToClientPacket

public class UpdateWorldMapSettings extends Object implements Packet, ToClientPacket
  • Field Details

    • PACKET_ID

      public static final int PACKET_ID
      See Also:
    • IS_COMPRESSED

      public static final boolean IS_COMPRESSED
      See Also:
    • NULLABLE_BIT_FIELD_SIZE

      public static final int NULLABLE_BIT_FIELD_SIZE
      See Also:
    • FIXED_BLOCK_SIZE

      public static final int FIXED_BLOCK_SIZE
      See Also:
    • VARIABLE_FIELD_COUNT

      public static final int VARIABLE_FIELD_COUNT
      See Also:
    • VARIABLE_BLOCK_START

      public static final int VARIABLE_BLOCK_START
      See Also:
    • MAX_SIZE

      public static final int MAX_SIZE
      See Also:
    • enabled

      public boolean enabled
    • allowTeleportToCoordinates

      public boolean allowTeleportToCoordinates
    • allowTeleportToMarkers

      public boolean allowTeleportToMarkers
    • allowShowOnMapToggle

      public boolean allowShowOnMapToggle
    • allowCompassTrackingToggle

      public boolean allowCompassTrackingToggle
    • allowCreatingMapMarkers

      public boolean allowCreatingMapMarkers
    • allowRemovingOtherPlayersMarkers

      public boolean allowRemovingOtherPlayersMarkers
    • defaultScale

      public float defaultScale
    • minScale

      public float minScale
    • maxScale

      public float maxScale
  • Constructor Details

    • UpdateWorldMapSettings

      public UpdateWorldMapSettings()
    • UpdateWorldMapSettings

      public UpdateWorldMapSettings(boolean enabled, boolean allowTeleportToCoordinates, boolean allowTeleportToMarkers, boolean allowShowOnMapToggle, boolean allowCompassTrackingToggle, boolean allowCreatingMapMarkers, boolean allowRemovingOtherPlayersMarkers, float defaultScale, float minScale, float maxScale)
    • UpdateWorldMapSettings

      public UpdateWorldMapSettings(@Nonnull UpdateWorldMapSettings other)
  • Method Details

    • getId

      public int getId()
      Description copied from interface: Packet
      Returns the unique packet ID.
      Specified by:
      getId in interface Packet
    • getChannel

      public NetworkChannel getChannel()
      Description copied from interface: Packet
      Returns the channel this packet should be sent on.
      Specified by:
      getChannel in interface Packet
    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment.
    • getEnabled

      public static boolean getEnabled(MemorySegment mem)
    • getEnabled

      public static boolean getEnabled(MemorySegment mem, int offset)
    • getAllowTeleportToCoordinates

      public static boolean getAllowTeleportToCoordinates(MemorySegment mem)
    • getAllowTeleportToCoordinates

      public static boolean getAllowTeleportToCoordinates(MemorySegment mem, int offset)
    • getAllowTeleportToMarkers

      public static boolean getAllowTeleportToMarkers(MemorySegment mem)
    • getAllowTeleportToMarkers

      public static boolean getAllowTeleportToMarkers(MemorySegment mem, int offset)
    • getAllowShowOnMapToggle

      public static boolean getAllowShowOnMapToggle(MemorySegment mem)
    • getAllowShowOnMapToggle

      public static boolean getAllowShowOnMapToggle(MemorySegment mem, int offset)
    • getAllowCompassTrackingToggle

      public static boolean getAllowCompassTrackingToggle(MemorySegment mem)
    • getAllowCompassTrackingToggle

      public static boolean getAllowCompassTrackingToggle(MemorySegment mem, int offset)
    • getAllowCreatingMapMarkers

      public static boolean getAllowCreatingMapMarkers(MemorySegment mem)
    • getAllowCreatingMapMarkers

      public static boolean getAllowCreatingMapMarkers(MemorySegment mem, int offset)
    • getAllowRemovingOtherPlayersMarkers

      public static boolean getAllowRemovingOtherPlayersMarkers(MemorySegment mem)
    • getAllowRemovingOtherPlayersMarkers

      public static boolean getAllowRemovingOtherPlayersMarkers(MemorySegment mem, int offset)
    • getDefaultScale

      public static float getDefaultScale(MemorySegment mem)
    • getDefaultScale

      public static float getDefaultScale(MemorySegment mem, int offset)
    • getMinScale

      public static float getMinScale(MemorySegment mem)
    • getMinScale

      public static float getMinScale(MemorySegment mem, int offset)
    • getMaxScale

      public static float getMaxScale(MemorySegment mem)
    • getMaxScale

      public static float getMaxScale(MemorySegment mem, int offset)
    • toObject

      public static UpdateWorldMapSettings toObject(MemorySegment mem)
    • toObject

      public static UpdateWorldMapSettings toObject(MemorySegment mem, int offset)
    • toObject

      public static UpdateWorldMapSettings toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one UpdateWorldMapSettings and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked.
    • serialize

      public int serialize(@Nonnull MemorySegment mem, int offset)
      Description copied from interface: Packet
      Writes this packet at offset and returns the number of bytes written, which callers rely on being exactly Packet.computeSize(). The framed write path reserves and length-prefixes on that figure before serializing, so a shorter or longer write corrupts the frame rather than failing.
      Specified by:
      serialize in interface Packet
    • computeSize

      public int computeSize()
      Description copied from interface: Packet
      Compute the exact number of bytes needed to serialize this packet.
      Specified by:
      computeSize in interface Packet
    • clone

      public UpdateWorldMapSettings clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object