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
- showEntityMarkers
- armorItemsPreferredPickupLocation
- weaponAndToolItemsPreferredPickupLocation
- usableItemsItemsPreferredPickupLocation
- solidBlockItemsPreferredPickupLocation
- miscItemsPreferredPickupLocation
- allowNPCDetection
- respondToHit
- hideHelmet
- hideCuirass
- hideGauntlets
- hidePants
- placeMode
- creativeInteractionDistance
- showBuilderToolNotifications
- noPhysics
- eraserEnabled
- activateTriggerVolumes
- voiceChat
- voiceInput
- voiceInputMode
- Constructor Details
- SyncPlayerPreferences()
- SyncPlayerPreferences(boolean, PickupLocation, PickupLocation, PickupLocation, PickupLocation, PickupLocation, boolean, boolean, boolean, boolean, boolean, boolean, PlaceMode, int, boolean, boolean, boolean, boolean, boolean, boolean, VoiceInputMode)
- SyncPlayerPreferences(SyncPlayerPreferences)
- Method Details
- getId()
- getChannel()
- requireBounds(MemorySegment, int)
- getShowEntityMarkers(MemorySegment)
- getShowEntityMarkers(MemorySegment, int)
- getArmorItemsPreferredPickupLocation(MemorySegment)
- getArmorItemsPreferredPickupLocation(MemorySegment, int)
- getWeaponAndToolItemsPreferredPickupLocation(MemorySegment)
- getWeaponAndToolItemsPreferredPickupLocation(MemorySegment, int)
- getUsableItemsItemsPreferredPickupLocation(MemorySegment)
- getUsableItemsItemsPreferredPickupLocation(MemorySegment, int)
- getSolidBlockItemsPreferredPickupLocation(MemorySegment)
- getSolidBlockItemsPreferredPickupLocation(MemorySegment, int)
- getMiscItemsPreferredPickupLocation(MemorySegment)
- getMiscItemsPreferredPickupLocation(MemorySegment, int)
- getAllowNPCDetection(MemorySegment)
- getAllowNPCDetection(MemorySegment, int)
- getRespondToHit(MemorySegment)
- getRespondToHit(MemorySegment, int)
- getHideHelmet(MemorySegment)
- getHideHelmet(MemorySegment, int)
- getHideCuirass(MemorySegment)
- getHideCuirass(MemorySegment, int)
- getHideGauntlets(MemorySegment)
- getHideGauntlets(MemorySegment, int)
- getHidePants(MemorySegment)
- getHidePants(MemorySegment, int)
- getPlaceMode(MemorySegment)
- getPlaceMode(MemorySegment, int)
- getCreativeInteractionDistance(MemorySegment)
- getCreativeInteractionDistance(MemorySegment, int)
- getShowBuilderToolNotifications(MemorySegment)
- getShowBuilderToolNotifications(MemorySegment, int)
- getNoPhysics(MemorySegment)
- getNoPhysics(MemorySegment, int)
- getEraserEnabled(MemorySegment)
- getEraserEnabled(MemorySegment, int)
- getActivateTriggerVolumes(MemorySegment)
- getActivateTriggerVolumes(MemorySegment, int)
- getVoiceChat(MemorySegment)
- getVoiceChat(MemorySegment, int)
- getVoiceInput(MemorySegment)
- getVoiceInput(MemorySegment, int)
- getVoiceInputMode(MemorySegment)
- getVoiceInputMode(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class SyncPlayerPreferences
java.lang.Object
com.hypixel.hytale.protocol.packets.player.SyncPlayerPreferences
- All Implemented Interfaces:
Packet, ToServerPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanintbooleanstatic final intbooleanbooleanbooleanbooleanstatic final booleanstatic final intbooleanstatic final intstatic final intbooleanbooleanbooleanstatic final intstatic final intbooleanboolean -
Constructor Summary
ConstructorsConstructorDescriptionSyncPlayerPreferences(boolean showEntityMarkers, PickupLocation armorItemsPreferredPickupLocation, PickupLocation weaponAndToolItemsPreferredPickupLocation, PickupLocation usableItemsItemsPreferredPickupLocation, PickupLocation solidBlockItemsPreferredPickupLocation, PickupLocation miscItemsPreferredPickupLocation, boolean allowNPCDetection, boolean respondToHit, boolean hideHelmet, boolean hideCuirass, boolean hideGauntlets, boolean hidePants, PlaceMode placeMode, int creativeInteractionDistance, boolean showBuilderToolNotifications, boolean noPhysics, boolean eraserEnabled, boolean activateTriggerVolumes, boolean voiceChat, boolean voiceInput, VoiceInputMode voiceInputMode) -
Method Summary
Modifier and TypeMethodDescriptionclone()intCompute the exact number of bytes needed to serialize this packet.booleanstatic booleanstatic booleangetActivateTriggerVolumes(MemorySegment mem, int offset) static booleanstatic booleangetAllowNPCDetection(MemorySegment mem, int offset) static PickupLocationstatic PickupLocationgetArmorItemsPreferredPickupLocation(MemorySegment mem, int offset) Returns the channel this packet should be sent on.static intstatic intgetCreativeInteractionDistance(MemorySegment mem, int offset) static booleanstatic booleangetEraserEnabled(MemorySegment mem, int offset) static booleanstatic booleangetHideCuirass(MemorySegment mem, int offset) static booleanstatic booleangetHideGauntlets(MemorySegment mem, int offset) static booleanstatic booleangetHideHelmet(MemorySegment mem, int offset) static booleanstatic booleangetHidePants(MemorySegment mem, int offset) intgetId()Returns the unique packet ID.static PickupLocationstatic PickupLocationgetMiscItemsPreferredPickupLocation(MemorySegment mem, int offset) static booleanstatic booleangetNoPhysics(MemorySegment mem, int offset) static PlaceModestatic PlaceModegetPlaceMode(MemorySegment mem, int offset) static booleanstatic booleangetRespondToHit(MemorySegment mem, int offset) static booleanstatic booleangetShowBuilderToolNotifications(MemorySegment mem, int offset) static booleanstatic booleangetShowEntityMarkers(MemorySegment mem, int offset) static PickupLocationstatic PickupLocationgetSolidBlockItemsPreferredPickupLocation(MemorySegment mem, int offset) static PickupLocationstatic PickupLocationgetUsableItemsItemsPreferredPickupLocation(MemorySegment mem, int offset) static booleanstatic booleangetVoiceChat(MemorySegment mem, int offset) static booleanstatic booleangetVoiceInput(MemorySegment mem, int offset) static VoiceInputModestatic VoiceInputModegetVoiceInputMode(MemorySegment mem, int offset) static PickupLocationstatic PickupLocationgetWeaponAndToolItemsPreferredPickupLocation(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 SyncPlayerPreferencestoObject(MemorySegment mem) static SyncPlayerPreferencestoObject(MemorySegment mem, int offset) static SyncPlayerPreferencestoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one SyncPlayerPreferences 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:
-
showEntityMarkers
public boolean showEntityMarkers -
armorItemsPreferredPickupLocation
-
weaponAndToolItemsPreferredPickupLocation
-
usableItemsItemsPreferredPickupLocation
-
solidBlockItemsPreferredPickupLocation
-
miscItemsPreferredPickupLocation
-
allowNPCDetection
public boolean allowNPCDetection -
respondToHit
public boolean respondToHit -
hideHelmet
public boolean hideHelmet -
hideCuirass
public boolean hideCuirass -
hideGauntlets
public boolean hideGauntlets -
hidePants
public boolean hidePants -
placeMode
-
creativeInteractionDistance
public int creativeInteractionDistance -
showBuilderToolNotifications
public boolean showBuilderToolNotifications -
noPhysics
public boolean noPhysics -
eraserEnabled
public boolean eraserEnabled -
activateTriggerVolumes
public boolean activateTriggerVolumes -
voiceChat
public boolean voiceChat -
voiceInput
public boolean voiceInput -
voiceInputMode
-
-
Constructor Details
-
SyncPlayerPreferences
public SyncPlayerPreferences() -
SyncPlayerPreferences
public SyncPlayerPreferences(boolean showEntityMarkers, @Nonnull PickupLocation armorItemsPreferredPickupLocation, @Nonnull PickupLocation weaponAndToolItemsPreferredPickupLocation, @Nonnull PickupLocation usableItemsItemsPreferredPickupLocation, @Nonnull PickupLocation solidBlockItemsPreferredPickupLocation, @Nonnull PickupLocation miscItemsPreferredPickupLocation, boolean allowNPCDetection, boolean respondToHit, boolean hideHelmet, boolean hideCuirass, boolean hideGauntlets, boolean hidePants, @Nonnull PlaceMode placeMode, int creativeInteractionDistance, boolean showBuilderToolNotifications, boolean noPhysics, boolean eraserEnabled, boolean activateTriggerVolumes, boolean voiceChat, boolean voiceInput, @Nonnull VoiceInputMode voiceInputMode) -
SyncPlayerPreferences
-
-
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. -
getShowEntityMarkers
-
getShowEntityMarkers
-
getArmorItemsPreferredPickupLocation
-
getArmorItemsPreferredPickupLocation
-
getWeaponAndToolItemsPreferredPickupLocation
-
getWeaponAndToolItemsPreferredPickupLocation
public static PickupLocation getWeaponAndToolItemsPreferredPickupLocation(MemorySegment mem, int offset) -
getUsableItemsItemsPreferredPickupLocation
-
getUsableItemsItemsPreferredPickupLocation
public static PickupLocation getUsableItemsItemsPreferredPickupLocation(MemorySegment mem, int offset) -
getSolidBlockItemsPreferredPickupLocation
-
getSolidBlockItemsPreferredPickupLocation
public static PickupLocation getSolidBlockItemsPreferredPickupLocation(MemorySegment mem, int offset) -
getMiscItemsPreferredPickupLocation
-
getMiscItemsPreferredPickupLocation
-
getAllowNPCDetection
-
getAllowNPCDetection
-
getRespondToHit
-
getRespondToHit
-
getHideHelmet
-
getHideHelmet
-
getHideCuirass
-
getHideCuirass
-
getHideGauntlets
-
getHideGauntlets
-
getHidePants
-
getHidePants
-
getPlaceMode
-
getPlaceMode
-
getCreativeInteractionDistance
-
getCreativeInteractionDistance
-
getShowBuilderToolNotifications
-
getShowBuilderToolNotifications
-
getNoPhysics
-
getNoPhysics
-
getEraserEnabled
-
getEraserEnabled
-
getActivateTriggerVolumes
-
getActivateTriggerVolumes
-
getVoiceChat
-
getVoiceChat
-
getVoiceInput
-
getVoiceInput
-
getVoiceInputMode
-
getVoiceInputMode
-
toObject
-
toObject
-
toObject
public static SyncPlayerPreferences toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one SyncPlayerPreferences 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
-