Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getSpawnerId(MemorySegment)
- getSpawnerId(MemorySegment, int)
- getPositionOffset(MemorySegment)
- getPositionOffset(MemorySegment, int)
- getRotationOffset(MemorySegment)
- getRotationOffset(MemorySegment, int)
- getFixedRotation(MemorySegment)
- getFixedRotation(MemorySegment, int)
- getStartDelay(MemorySegment)
- getStartDelay(MemorySegment, int)
- getSpawnRate(MemorySegment)
- getSpawnRate(MemorySegment, int)
- getWaveDelay(MemorySegment)
- getWaveDelay(MemorySegment, int)
- getTotalSpawners(MemorySegment)
- getTotalSpawners(MemorySegment, int)
- getMaxConcurrent(MemorySegment)
- getMaxConcurrent(MemorySegment, int)
- getInitialVelocity(MemorySegment)
- getInitialVelocity(MemorySegment, int)
- getEmitOffset(MemorySegment)
- getEmitOffset(MemorySegment, int)
- getLifeSpan(MemorySegment)
- getLifeSpan(MemorySegment, int)
- getAttractors(MemorySegment)
- getAttractors(MemorySegment, int)
- hasPositionOffset(MemorySegment, int)
- hasRotationOffset(MemorySegment, int)
- hasSpawnRate(MemorySegment, int)
- hasWaveDelay(MemorySegment, int)
- hasInitialVelocity(MemorySegment, int)
- hasEmitOffset(MemorySegment, int)
- hasLifeSpan(MemorySegment, int)
- hasSpawnerId(MemorySegment, int)
- hasAttractors(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ParticleSpawnerGroup
java.lang.Object
com.hypixel.hytale.protocol.ParticleSpawnerGroup
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intbooleanstatic final intintstatic final intorg.joml.Vector3fcfloatintstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionParticleSpawnerGroup(String spawnerId, org.joml.Vector3fc positionOffset, Direction rotationOffset, boolean fixedRotation, float startDelay, Rangef spawnRate, Rangef waveDelay, int totalSpawners, int maxConcurrent, InitialVelocity initialVelocity, RangeVector3f emitOffset, Rangef lifeSpan, ParticleAttractor[] attractors) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic ParticleAttractor[]static ParticleAttractor[]getAttractors(MemorySegment mem, int offset) static RangeVector3fstatic RangeVector3fgetEmitOffset(MemorySegment mem, int offset) static booleanstatic booleangetFixedRotation(MemorySegment mem, int offset) static InitialVelocitystatic InitialVelocitygetInitialVelocity(MemorySegment mem, int offset) static RangefgetLifeSpan(MemorySegment mem) static RangefgetLifeSpan(MemorySegment mem, int offset) static intstatic intgetMaxConcurrent(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetPositionOffset(MemorySegment mem, int offset) static Directionstatic DirectiongetRotationOffset(MemorySegment mem, int offset) static Stringstatic StringgetSpawnerId(MemorySegment mem, int offset) static Rangefstatic RangefgetSpawnRate(MemorySegment mem, int offset) static floatstatic floatgetStartDelay(MemorySegment mem, int offset) static intstatic intgetTotalSpawners(MemorySegment mem, int offset) static Rangefstatic RangefgetWaveDelay(MemorySegment mem, int offset) static booleanhasAttractors(MemorySegment mem, int offset) static booleanhasEmitOffset(MemorySegment mem, int offset) inthashCode()static booleanhasInitialVelocity(MemorySegment mem, int offset) static booleanhasLifeSpan(MemorySegment mem, int offset) static booleanhasPositionOffset(MemorySegment mem, int offset) static booleanhasRotationOffset(MemorySegment mem, int offset) static booleanhasSpawnerId(MemorySegment mem, int offset) static booleanhasSpawnRate(MemorySegment mem, int offset) static booleanhasWaveDelay(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ParticleSpawnerGrouptoObject(MemorySegment mem) static ParticleSpawnerGrouptoObject(MemorySegment mem, int offset) static ParticleSpawnerGrouptoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ParticleSpawnerGroup 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:
-
spawnerId
-
positionOffset
@Nullable public org.joml.Vector3fc positionOffset -
rotationOffset
-
fixedRotation
public boolean fixedRotation -
startDelay
public float startDelay -
spawnRate
-
waveDelay
-
totalSpawners
public int totalSpawners -
maxConcurrent
public int maxConcurrent -
initialVelocity
-
emitOffset
-
lifeSpan
-
attractors
-
-
Constructor Details
-
ParticleSpawnerGroup
public ParticleSpawnerGroup() -
ParticleSpawnerGroup
public ParticleSpawnerGroup(@Nullable String spawnerId, @Nullable org.joml.Vector3fc positionOffset, @Nullable Direction rotationOffset, boolean fixedRotation, float startDelay, @Nullable Rangef spawnRate, @Nullable Rangef waveDelay, int totalSpawners, int maxConcurrent, @Nullable InitialVelocity initialVelocity, @Nullable RangeVector3f emitOffset, @Nullable Rangef lifeSpan, @Nullable ParticleAttractor[] attractors) -
ParticleSpawnerGroup
-
-
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. -
getSpawnerId
-
getSpawnerId
-
getPositionOffset
-
getPositionOffset
-
getRotationOffset
-
getRotationOffset
-
getFixedRotation
-
getFixedRotation
-
getStartDelay
-
getStartDelay
-
getSpawnRate
-
getSpawnRate
-
getWaveDelay
-
getWaveDelay
-
getTotalSpawners
-
getTotalSpawners
-
getMaxConcurrent
-
getMaxConcurrent
-
getInitialVelocity
-
getInitialVelocity
-
getEmitOffset
-
getEmitOffset
-
getLifeSpan
-
getLifeSpan
-
getAttractors
-
getAttractors
-
hasPositionOffset
-
hasRotationOffset
-
hasSpawnRate
-
hasWaveDelay
-
hasInitialVelocity
-
hasEmitOffset
-
hasLifeSpan
-
hasSpawnerId
-
hasAttractors
-
toObject
-
toObject
-
toObject
public static ParticleSpawnerGroup toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one ParticleSpawnerGroup 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
-