Class ParticleSpawner

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

public class ParticleSpawner 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:
    • id

      @Nullable public String id
    • particle

      @Nullable public Particle particle
    • shape

      @Nonnull public EmitShape shape
    • emitOffset

      @Nullable public RangeVector3f emitOffset
    • cameraOffset

      public float cameraOffset
    • useEmitDirection

      public boolean useEmitDirection
    • lifeSpan

      public float lifeSpan
    • spawnRate

      @Nullable public Rangef spawnRate
    • spawnBurst

      public boolean spawnBurst
    • waveDelay

      @Nullable public Rangef waveDelay
    • totalParticles

      @Nullable public Range totalParticles
    • maxConcurrentParticles

      public int maxConcurrentParticles
    • initialVelocity

      @Nullable public InitialVelocity initialVelocity
    • velocityStretchMultiplier

      public float velocityStretchMultiplier
    • particleRotationInfluence

      @Nonnull public ParticleRotationInfluence particleRotationInfluence
    • particleRotateWithSpawner

      public boolean particleRotateWithSpawner
    • isLowRes

      public boolean isLowRes
    • trailSpawnerPositionMultiplier

      public float trailSpawnerPositionMultiplier
    • trailSpawnerRotationMultiplier

      public float trailSpawnerRotationMultiplier
    • particleCollision

      @Nullable public ParticleCollision particleCollision
    • renderMode

      @Nonnull public FXRenderMode renderMode
    • lightInfluence

      public float lightInfluence
    • linearFiltering

      public boolean linearFiltering
    • particleLifeSpan

      @Nullable public Rangef particleLifeSpan
    • uvMotion

      @Nullable public UVMotion uvMotion
    • attractors

      @Nullable public ParticleAttractor[] attractors
    • intersectionHighlight

      @Nullable public IntersectionHighlight intersectionHighlight
  • Constructor Details

    • ParticleSpawner

      public ParticleSpawner()
    • ParticleSpawner

      public ParticleSpawner(@Nullable String id, @Nullable Particle particle, @Nonnull EmitShape shape, @Nullable RangeVector3f emitOffset, float cameraOffset, boolean useEmitDirection, float lifeSpan, @Nullable Rangef spawnRate, boolean spawnBurst, @Nullable Rangef waveDelay, @Nullable Range totalParticles, int maxConcurrentParticles, @Nullable InitialVelocity initialVelocity, float velocityStretchMultiplier, @Nonnull ParticleRotationInfluence particleRotationInfluence, boolean particleRotateWithSpawner, boolean isLowRes, float trailSpawnerPositionMultiplier, float trailSpawnerRotationMultiplier, @Nullable ParticleCollision particleCollision, @Nonnull FXRenderMode renderMode, float lightInfluence, boolean linearFiltering, @Nullable Rangef particleLifeSpan, @Nullable UVMotion uvMotion, @Nullable ParticleAttractor[] attractors, @Nullable IntersectionHighlight intersectionHighlight)
    • ParticleSpawner

      public ParticleSpawner(@Nonnull ParticleSpawner 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.
    • getId

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

      @Nullable public static String getId(MemorySegment mem, int offset)
    • getParticle

      @Nullable public static Particle getParticle(MemorySegment mem)
    • getParticle

      @Nullable public static Particle getParticle(MemorySegment mem, int offset)
    • getShape

      public static EmitShape getShape(MemorySegment mem)
    • getShape

      public static EmitShape getShape(MemorySegment mem, int offset)
    • getEmitOffset

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

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

      public static float getCameraOffset(MemorySegment mem)
    • getCameraOffset

      public static float getCameraOffset(MemorySegment mem, int offset)
    • getUseEmitDirection

      public static boolean getUseEmitDirection(MemorySegment mem)
    • getUseEmitDirection

      public static boolean getUseEmitDirection(MemorySegment mem, int offset)
    • getLifeSpan

      public static float getLifeSpan(MemorySegment mem)
    • getLifeSpan

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

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

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

      public static boolean getSpawnBurst(MemorySegment mem)
    • getSpawnBurst

      public static boolean getSpawnBurst(MemorySegment mem, int offset)
    • getWaveDelay

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

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

      @Nullable public static Range getTotalParticles(MemorySegment mem)
    • getTotalParticles

      @Nullable public static Range getTotalParticles(MemorySegment mem, int offset)
    • getMaxConcurrentParticles

      public static int getMaxConcurrentParticles(MemorySegment mem)
    • getMaxConcurrentParticles

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

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

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

      public static float getVelocityStretchMultiplier(MemorySegment mem)
    • getVelocityStretchMultiplier

      public static float getVelocityStretchMultiplier(MemorySegment mem, int offset)
    • getParticleRotationInfluence

      public static ParticleRotationInfluence getParticleRotationInfluence(MemorySegment mem)
    • getParticleRotationInfluence

      public static ParticleRotationInfluence getParticleRotationInfluence(MemorySegment mem, int offset)
    • getParticleRotateWithSpawner

      public static boolean getParticleRotateWithSpawner(MemorySegment mem)
    • getParticleRotateWithSpawner

      public static boolean getParticleRotateWithSpawner(MemorySegment mem, int offset)
    • getIsLowRes

      public static boolean getIsLowRes(MemorySegment mem)
    • getIsLowRes

      public static boolean getIsLowRes(MemorySegment mem, int offset)
    • getTrailSpawnerPositionMultiplier

      public static float getTrailSpawnerPositionMultiplier(MemorySegment mem)
    • getTrailSpawnerPositionMultiplier

      public static float getTrailSpawnerPositionMultiplier(MemorySegment mem, int offset)
    • getTrailSpawnerRotationMultiplier

      public static float getTrailSpawnerRotationMultiplier(MemorySegment mem)
    • getTrailSpawnerRotationMultiplier

      public static float getTrailSpawnerRotationMultiplier(MemorySegment mem, int offset)
    • getParticleCollision

      @Nullable public static ParticleCollision getParticleCollision(MemorySegment mem)
    • getParticleCollision

      @Nullable public static ParticleCollision getParticleCollision(MemorySegment mem, int offset)
    • getRenderMode

      public static FXRenderMode getRenderMode(MemorySegment mem)
    • getRenderMode

      public static FXRenderMode getRenderMode(MemorySegment mem, int offset)
    • getLightInfluence

      public static float getLightInfluence(MemorySegment mem)
    • getLightInfluence

      public static float getLightInfluence(MemorySegment mem, int offset)
    • getLinearFiltering

      public static boolean getLinearFiltering(MemorySegment mem)
    • getLinearFiltering

      public static boolean getLinearFiltering(MemorySegment mem, int offset)
    • getParticleLifeSpan

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

      @Nullable public static Rangef getParticleLifeSpan(MemorySegment mem, int offset)
    • getUvMotion

      @Nullable public static UVMotion getUvMotion(MemorySegment mem)
    • getUvMotion

      @Nullable public static UVMotion getUvMotion(MemorySegment mem, int offset)
    • getAttractors

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

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

      @Nullable public static IntersectionHighlight getIntersectionHighlight(MemorySegment mem)
    • getIntersectionHighlight

      @Nullable public static IntersectionHighlight getIntersectionHighlight(MemorySegment mem, int offset)
    • hasEmitOffset

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

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

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

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

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

      public static boolean hasParticleCollision(MemorySegment mem, int offset)
    • hasParticleLifeSpan

      public static boolean hasParticleLifeSpan(MemorySegment mem, int offset)
    • hasIntersectionHighlight

      public static boolean hasIntersectionHighlight(MemorySegment mem, int offset)
    • hasId

      public static boolean hasId(MemorySegment mem, int offset)
    • hasParticle

      public static boolean hasParticle(MemorySegment mem, int offset)
    • hasUvMotion

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

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

      public static ParticleSpawner toObject(MemorySegment mem)
    • toObject

      public static ParticleSpawner toObject(MemorySegment mem, int offset)
    • toObject

      public static ParticleSpawner toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one ParticleSpawner 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 ParticleSpawner clone()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object