Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getId(MemorySegment)
- getId(MemorySegment, int)
- getConditions(MemorySegment)
- getConditions(MemorySegment, int)
- getSounds(MemorySegment)
- getSounds(MemorySegment, int)
- getMusicContainerIndex(MemorySegment)
- getMusicContainerIndex(MemorySegment, int)
- getAmbientBed(MemorySegment)
- getAmbientBed(MemorySegment, int)
- getSoundEffect(MemorySegment)
- getSoundEffect(MemorySegment, int)
- getPriority(MemorySegment)
- getPriority(MemorySegment, int)
- getBlockedAmbienceFxIndices(MemorySegment)
- getBlockedAmbienceFxIndices(MemorySegment, int)
- getAudioCategoryIndex(MemorySegment)
- getAudioCategoryIndex(MemorySegment, int)
- getSetStates(MemorySegment)
- getSetStates(MemorySegment, int)
- hasSoundEffect(MemorySegment, int)
- hasId(MemorySegment, int)
- hasConditions(MemorySegment, int)
- hasSounds(MemorySegment, int)
- hasAmbientBed(MemorySegment, int)
- hasBlockedAmbienceFxIndices(MemorySegment, int)
- hasSetStates(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class AmbienceFX
java.lang.Object
com.hypixel.hytale.protocol.AmbienceFX
-
Field Summary
FieldsModifier and TypeFieldDescriptionintint[]static final intstatic final intintstatic final intintstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionAmbienceFX(AmbienceFX other) AmbienceFX(String id, AmbienceFXConditions conditions, AmbienceFXSound[] sounds, int musicContainerIndex, AmbienceFXAmbientBed ambientBed, AmbienceFXSoundEffect soundEffect, int priority, int[] blockedAmbienceFxIndices, int audioCategoryIndex, AmbienceStateWrite[] setStates) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic AmbienceFXAmbientBedstatic AmbienceFXAmbientBedgetAmbientBed(MemorySegment mem, int offset) static intstatic intgetAudioCategoryIndex(MemorySegment mem, int offset) static int[]static int[]getBlockedAmbienceFxIndices(MemorySegment mem, int offset) static AmbienceFXConditionsstatic AmbienceFXConditionsgetConditions(MemorySegment mem, int offset) static StringgetId(MemorySegment mem) static StringgetId(MemorySegment mem, int offset) static intstatic intgetMusicContainerIndex(MemorySegment mem, int offset) static intgetPriority(MemorySegment mem) static intgetPriority(MemorySegment mem, int offset) static AmbienceStateWrite[]static AmbienceStateWrite[]getSetStates(MemorySegment mem, int offset) static AmbienceFXSoundEffectstatic AmbienceFXSoundEffectgetSoundEffect(MemorySegment mem, int offset) static AmbienceFXSound[]getSounds(MemorySegment mem) static AmbienceFXSound[]getSounds(MemorySegment mem, int offset) static booleanhasAmbientBed(MemorySegment mem, int offset) static booleanhasBlockedAmbienceFxIndices(MemorySegment mem, int offset) static booleanhasConditions(MemorySegment mem, int offset) inthashCode()static booleanhasId(MemorySegment mem, int offset) static booleanhasSetStates(MemorySegment mem, int offset) static booleanhasSoundEffect(MemorySegment mem, int offset) static booleanhasSounds(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static AmbienceFXtoObject(MemorySegment mem) static AmbienceFXtoObject(MemorySegment mem, int offset) static AmbienceFXtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one AmbienceFX and reports the end of its encoding through the cursor.
-
Field Details
-
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:
-
id
-
conditions
-
sounds
-
musicContainerIndex
public int musicContainerIndex -
ambientBed
-
soundEffect
-
priority
public int priority -
blockedAmbienceFxIndices
@Nullable public int[] blockedAmbienceFxIndices -
audioCategoryIndex
public int audioCategoryIndex -
setStates
-
-
Constructor Details
-
AmbienceFX
public AmbienceFX() -
AmbienceFX
public AmbienceFX(@Nullable String id, @Nullable AmbienceFXConditions conditions, @Nullable AmbienceFXSound[] sounds, int musicContainerIndex, @Nullable AmbienceFXAmbientBed ambientBed, @Nullable AmbienceFXSoundEffect soundEffect, int priority, @Nullable int[] blockedAmbienceFxIndices, int audioCategoryIndex, @Nullable AmbienceStateWrite[] setStates) -
AmbienceFX
-
-
Method Details
-
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. -
getId
-
getId
-
getConditions
-
getConditions
-
getSounds
-
getSounds
-
getMusicContainerIndex
-
getMusicContainerIndex
-
getAmbientBed
-
getAmbientBed
-
getSoundEffect
-
getSoundEffect
-
getPriority
-
getPriority
-
getBlockedAmbienceFxIndices
-
getBlockedAmbienceFxIndices
-
getAudioCategoryIndex
-
getAudioCategoryIndex
-
getSetStates
-
getSetStates
-
hasSoundEffect
-
hasId
-
hasConditions
-
hasSounds
-
hasAmbientBed
-
hasBlockedAmbienceFxIndices
-
hasSetStates
-
toObject
-
toObject
-
toObject
Decodes one AmbienceFX 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
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-