Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- PACKET_ID
- IS_COMPRESSED
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- enabled
- allowTeleportToCoordinates
- allowTeleportToMarkers
- allowShowOnMapToggle
- allowCompassTrackingToggle
- allowCreatingMapMarkers
- allowRemovingOtherPlayersMarkers
- defaultScale
- minScale
- maxScale
- Constructor Details
- Method Details
- getId()
- getChannel()
- requireBounds(MemorySegment, int)
- getEnabled(MemorySegment)
- getEnabled(MemorySegment, int)
- getAllowTeleportToCoordinates(MemorySegment)
- getAllowTeleportToCoordinates(MemorySegment, int)
- getAllowTeleportToMarkers(MemorySegment)
- getAllowTeleportToMarkers(MemorySegment, int)
- getAllowShowOnMapToggle(MemorySegment)
- getAllowShowOnMapToggle(MemorySegment, int)
- getAllowCompassTrackingToggle(MemorySegment)
- getAllowCompassTrackingToggle(MemorySegment, int)
- getAllowCreatingMapMarkers(MemorySegment)
- getAllowCreatingMapMarkers(MemorySegment, int)
- getAllowRemovingOtherPlayersMarkers(MemorySegment)
- getAllowRemovingOtherPlayersMarkers(MemorySegment, int)
- getDefaultScale(MemorySegment)
- getDefaultScale(MemorySegment, int)
- getMinScale(MemorySegment)
- getMinScale(MemorySegment, int)
- getMaxScale(MemorySegment)
- getMaxScale(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class UpdateWorldMapSettings
java.lang.Object
com.hypixel.hytale.protocol.packets.worldmap.UpdateWorldMapSettings
- All Implemented Interfaces:
Packet, ToClientPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanbooleanbooleanfloatbooleanstatic final intstatic final booleanstatic final intfloatfloatstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionUpdateWorldMapSettings(boolean enabled, boolean allowTeleportToCoordinates, boolean allowTeleportToMarkers, boolean allowShowOnMapToggle, boolean allowCompassTrackingToggle, boolean allowCreatingMapMarkers, boolean allowRemovingOtherPlayersMarkers, float defaultScale, float minScale, float maxScale) -
Method Summary
Modifier and TypeMethodDescriptionclone()intCompute the exact number of bytes needed to serialize this packet.booleanstatic booleanstatic booleangetAllowCompassTrackingToggle(MemorySegment mem, int offset) static booleanstatic booleangetAllowCreatingMapMarkers(MemorySegment mem, int offset) static booleanstatic booleangetAllowRemovingOtherPlayersMarkers(MemorySegment mem, int offset) static booleanstatic booleangetAllowShowOnMapToggle(MemorySegment mem, int offset) static booleanstatic booleangetAllowTeleportToCoordinates(MemorySegment mem, int offset) static booleanstatic booleangetAllowTeleportToMarkers(MemorySegment mem, int offset) Returns the channel this packet should be sent on.static floatstatic floatgetDefaultScale(MemorySegment mem, int offset) static booleangetEnabled(MemorySegment mem) static booleangetEnabled(MemorySegment mem, int offset) intgetId()Returns the unique packet ID.static floatgetMaxScale(MemorySegment mem) static floatgetMaxScale(MemorySegment mem, int offset) static floatgetMinScale(MemorySegment mem) static floatgetMinScale(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) Writes this packet atoffsetand returns the number of bytes written, which callers rely on being exactlyPacket.computeSize().static UpdateWorldMapSettingstoObject(MemorySegment mem) static UpdateWorldMapSettingstoObject(MemorySegment mem, int offset) static UpdateWorldMapSettingstoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one UpdateWorldMapSettings and reports the end of its encoding through the cursor.
-
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
-
-
Method Details
-
getId
-
getChannel
Description copied from interface:PacketReturns the channel this packet should be sent on.- Specified by:
getChannelin interfacePacket
-
requireBounds
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
-
getEnabled
-
getAllowTeleportToCoordinates
-
getAllowTeleportToCoordinates
-
getAllowTeleportToMarkers
-
getAllowTeleportToMarkers
-
getAllowShowOnMapToggle
-
getAllowShowOnMapToggle
-
getAllowCompassTrackingToggle
-
getAllowCompassTrackingToggle
-
getAllowCreatingMapMarkers
-
getAllowCreatingMapMarkers
-
getAllowRemovingOtherPlayersMarkers
-
getAllowRemovingOtherPlayersMarkers
-
getDefaultScale
-
getDefaultScale
-
getMinScale
-
getMinScale
-
getMaxScale
-
getMaxScale
-
toObject
-
toObject
-
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
Description copied from interface:PacketWrites this packet atoffsetand returns the number of bytes written, which callers rely on being exactlyPacket.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. -
computeSize
public int computeSize()Description copied from interface:PacketCompute the exact number of bytes needed to serialize this packet.- Specified by:
computeSizein interfacePacket
-
clone
-
equals
-
hashCode
-