Class ParticleSpawnerGroup

java.lang.Object
com.hypixel.hytale.protocol.ParticleSpawnerGroup

public class ParticleSpawnerGroup extends Object
  • 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

      @Nullable public String spawnerId
    • positionOffset

      @Nullable public org.joml.Vector3fc positionOffset
    • rotationOffset

      @Nullable public Direction rotationOffset
    • fixedRotation

      public boolean fixedRotation
    • startDelay

      public float startDelay
    • spawnRate

      @Nullable public Rangef spawnRate
    • waveDelay

      @Nullable public Rangef waveDelay
    • totalSpawners

      public int totalSpawners
    • maxConcurrent

      public int maxConcurrent
    • initialVelocity

      @Nullable public InitialVelocity initialVelocity
    • emitOffset

      @Nullable public RangeVector3f emitOffset
    • lifeSpan

      @Nullable public Rangef lifeSpan
    • attractors

      @Nullable public ParticleAttractor[] 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

      public ParticleSpawnerGroup(@Nonnull ParticleSpawnerGroup other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      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

      @Nullable public static String getSpawnerId(MemorySegment mem)
    • getSpawnerId

      @Nullable public static String getSpawnerId(MemorySegment mem, int offset)
    • getPositionOffset

      @Nullable public static org.joml.Vector3fc getPositionOffset(MemorySegment mem)
    • getPositionOffset

      @Nullable public static org.joml.Vector3fc getPositionOffset(MemorySegment mem, int offset)
    • getRotationOffset

      @Nullable public static Direction getRotationOffset(MemorySegment mem)
    • getRotationOffset

      @Nullable public static Direction getRotationOffset(MemorySegment mem, int offset)
    • getFixedRotation

      public static boolean getFixedRotation(MemorySegment mem)
    • getFixedRotation

      public static boolean getFixedRotation(MemorySegment mem, int offset)
    • getStartDelay

      public static float getStartDelay(MemorySegment mem)
    • getStartDelay

      public static float getStartDelay(MemorySegment mem, int offset)
    • getSpawnRate

      @Nullable public static Rangef getSpawnRate(MemorySegment mem)
    • getSpawnRate

      @Nullable public static Rangef getSpawnRate(MemorySegment mem, int offset)
    • getWaveDelay

      @Nullable public static Rangef getWaveDelay(MemorySegment mem)
    • getWaveDelay

      @Nullable public static Rangef getWaveDelay(MemorySegment mem, int offset)
    • getTotalSpawners

      public static int getTotalSpawners(MemorySegment mem)
    • getTotalSpawners

      public static int getTotalSpawners(MemorySegment mem, int offset)
    • getMaxConcurrent

      public static int getMaxConcurrent(MemorySegment mem)
    • getMaxConcurrent

      public static int getMaxConcurrent(MemorySegment mem, int offset)
    • getInitialVelocity

      @Nullable public static InitialVelocity getInitialVelocity(MemorySegment mem)
    • getInitialVelocity

      @Nullable public static InitialVelocity getInitialVelocity(MemorySegment mem, int offset)
    • getEmitOffset

      @Nullable public static RangeVector3f getEmitOffset(MemorySegment mem)
    • getEmitOffset

      @Nullable public static RangeVector3f getEmitOffset(MemorySegment mem, int offset)
    • getLifeSpan

      @Nullable public static Rangef getLifeSpan(MemorySegment mem)
    • getLifeSpan

      @Nullable public static Rangef getLifeSpan(MemorySegment mem, int offset)
    • getAttractors

      @Nullable public static ParticleAttractor[] getAttractors(MemorySegment mem)
    • getAttractors

      @Nullable public static ParticleAttractor[] getAttractors(MemorySegment mem, int offset)
    • hasPositionOffset

      public static boolean hasPositionOffset(MemorySegment mem, int offset)
    • hasRotationOffset

      public static boolean hasRotationOffset(MemorySegment mem, int offset)
    • hasSpawnRate

      public static boolean hasSpawnRate(MemorySegment mem, int offset)
    • hasWaveDelay

      public static boolean hasWaveDelay(MemorySegment mem, int offset)
    • hasInitialVelocity

      public static boolean hasInitialVelocity(MemorySegment mem, int offset)
    • hasEmitOffset

      public static boolean hasEmitOffset(MemorySegment mem, int offset)
    • hasLifeSpan

      public static boolean hasLifeSpan(MemorySegment mem, int offset)
    • hasSpawnerId

      public static boolean hasSpawnerId(MemorySegment mem, int offset)
    • hasAttractors

      public static boolean hasAttractors(MemorySegment mem, int offset)
    • toObject

      public static ParticleSpawnerGroup toObject(MemorySegment mem)
    • toObject

      public static ParticleSpawnerGroup toObject(MemorySegment mem, int offset)
    • 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

      public int serialize(@Nonnull MemorySegment mem, int offset)
    • computeSize

      public int computeSize()
    • clone

      public ParticleSpawnerGroup clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object