Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getVolume(MemorySegment)
- getVolume(MemorySegment, int)
- getStartDelay(MemorySegment)
- getStartDelay(MemorySegment, int)
- getFadeIn(MemorySegment)
- getFadeIn(MemorySegment, int)
- getLooping(MemorySegment)
- getLooping(MemorySegment, int)
- getProbability(MemorySegment)
- getProbability(MemorySegment, int)
- getProbabilityRerollDelay(MemorySegment)
- getProbabilityRerollDelay(MemorySegment, int)
- getRoundRobinHistorySize(MemorySegment)
- getRoundRobinHistorySize(MemorySegment, int)
- getRandomSettings(MemorySegment)
- getRandomSettings(MemorySegment, int)
- getFiles(MemorySegment)
- getFiles(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class SoundEventLayer
java.lang.Object
com.hypixel.hytale.protocol.SoundEventLayer
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatString[]static final intbooleanstatic final intstatic final intintfloatintfloatstatic final intstatic final intfloat -
Constructor Summary
ConstructorsConstructorDescriptionSoundEventLayer(float volume, float startDelay, float fadeIn, boolean looping, int probability, float probabilityRerollDelay, int roundRobinHistorySize, SoundEventLayerRandomSettings randomSettings, String[] files) SoundEventLayer(SoundEventLayer other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic floatgetFadeIn(MemorySegment mem) static floatgetFadeIn(MemorySegment mem, int offset) static String[]getFiles(MemorySegment mem) static String[]getFiles(MemorySegment mem, int offset) static booleangetLooping(MemorySegment mem) static booleangetLooping(MemorySegment mem, int offset) static intstatic intgetProbability(MemorySegment mem, int offset) static floatstatic floatgetProbabilityRerollDelay(MemorySegment mem, int offset) getRandomSettings(MemorySegment mem, int offset) static intstatic intgetRoundRobinHistorySize(MemorySegment mem, int offset) static floatstatic floatgetStartDelay(MemorySegment mem, int offset) static floatgetVolume(MemorySegment mem) static floatgetVolume(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static SoundEventLayertoObject(MemorySegment mem) static SoundEventLayertoObject(MemorySegment mem, int offset) static SoundEventLayertoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one SoundEventLayer 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:
-
volume
public float volume -
startDelay
public float startDelay -
fadeIn
public float fadeIn -
looping
public boolean looping -
probability
public int probability -
probabilityRerollDelay
public float probabilityRerollDelay -
roundRobinHistorySize
public int roundRobinHistorySize -
randomSettings
-
files
-
-
Constructor Details
-
SoundEventLayer
public SoundEventLayer() -
SoundEventLayer
public SoundEventLayer(float volume, float startDelay, float fadeIn, boolean looping, int probability, float probabilityRerollDelay, int roundRobinHistorySize, @Nonnull SoundEventLayerRandomSettings randomSettings, @Nonnull String[] files) -
SoundEventLayer
-
-
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. -
getVolume
-
getVolume
-
getStartDelay
-
getStartDelay
-
getFadeIn
-
getFadeIn
-
getLooping
-
getLooping
-
getProbability
-
getProbability
-
getProbabilityRerollDelay
-
getProbabilityRerollDelay
-
getRoundRobinHistorySize
-
getRoundRobinHistorySize
-
getRandomSettings
-
getRandomSettings
-
getFiles
-
getFiles
-
toObject
-
toObject
-
toObject
Decodes one SoundEventLayer 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
-