Class Particle

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

public class Particle 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:
    • texturePath

      @Nullable public String texturePath
    • frameSize

      @Nullable public Size frameSize
    • uvOption

      @Nonnull public ParticleUVOption uvOption
    • scaleRatioConstraint

      @Nonnull public ParticleScaleRatioConstraint scaleRatioConstraint
    • softParticles

      @Nonnull public SoftParticle softParticles
    • softParticlesFadeFactor

      public float softParticlesFadeFactor
    • cameraNearFadeStartDistance

      public float cameraNearFadeStartDistance
    • cameraNearFadeEndDistance

      public float cameraNearFadeEndDistance
    • cameraFarFadeStartDistance

      public float cameraFarFadeStartDistance
    • cameraFarFadeEndDistance

      public float cameraFarFadeEndDistance
    • useSpriteBlending

      public boolean useSpriteBlending
    • initialAnimationFrame

      @Nullable public ParticleAnimationFrame initialAnimationFrame
    • collisionAnimationFrame

      @Nullable public ParticleAnimationFrame collisionAnimationFrame
    • animationFrames

      @Nullable public Map<Integer, ParticleAnimationFrame> animationFrames
  • Constructor Details

  • 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.
    • getTexturePath

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

      @Nullable public static String getTexturePath(MemorySegment mem, int offset)
    • getFrameSize

      @Nullable public static Size getFrameSize(MemorySegment mem)
    • getFrameSize

      @Nullable public static Size getFrameSize(MemorySegment mem, int offset)
    • getUvOption

      public static ParticleUVOption getUvOption(MemorySegment mem)
    • getUvOption

      public static ParticleUVOption getUvOption(MemorySegment mem, int offset)
    • getScaleRatioConstraint

      public static ParticleScaleRatioConstraint getScaleRatioConstraint(MemorySegment mem)
    • getScaleRatioConstraint

      public static ParticleScaleRatioConstraint getScaleRatioConstraint(MemorySegment mem, int offset)
    • getSoftParticles

      public static SoftParticle getSoftParticles(MemorySegment mem)
    • getSoftParticles

      public static SoftParticle getSoftParticles(MemorySegment mem, int offset)
    • getSoftParticlesFadeFactor

      public static float getSoftParticlesFadeFactor(MemorySegment mem)
    • getSoftParticlesFadeFactor

      public static float getSoftParticlesFadeFactor(MemorySegment mem, int offset)
    • getCameraNearFadeStartDistance

      public static float getCameraNearFadeStartDistance(MemorySegment mem)
    • getCameraNearFadeStartDistance

      public static float getCameraNearFadeStartDistance(MemorySegment mem, int offset)
    • getCameraNearFadeEndDistance

      public static float getCameraNearFadeEndDistance(MemorySegment mem)
    • getCameraNearFadeEndDistance

      public static float getCameraNearFadeEndDistance(MemorySegment mem, int offset)
    • getCameraFarFadeStartDistance

      public static float getCameraFarFadeStartDistance(MemorySegment mem)
    • getCameraFarFadeStartDistance

      public static float getCameraFarFadeStartDistance(MemorySegment mem, int offset)
    • getCameraFarFadeEndDistance

      public static float getCameraFarFadeEndDistance(MemorySegment mem)
    • getCameraFarFadeEndDistance

      public static float getCameraFarFadeEndDistance(MemorySegment mem, int offset)
    • getUseSpriteBlending

      public static boolean getUseSpriteBlending(MemorySegment mem)
    • getUseSpriteBlending

      public static boolean getUseSpriteBlending(MemorySegment mem, int offset)
    • getInitialAnimationFrame

      @Nullable public static ParticleAnimationFrame getInitialAnimationFrame(MemorySegment mem)
    • getInitialAnimationFrame

      @Nullable public static ParticleAnimationFrame getInitialAnimationFrame(MemorySegment mem, int offset)
    • getCollisionAnimationFrame

      @Nullable public static ParticleAnimationFrame getCollisionAnimationFrame(MemorySegment mem)
    • getCollisionAnimationFrame

      @Nullable public static ParticleAnimationFrame getCollisionAnimationFrame(MemorySegment mem, int offset)
    • getAnimationFrames

      @Nullable public static Map<Integer, ParticleAnimationFrame> getAnimationFrames(MemorySegment mem)
    • getAnimationFrames

      @Nullable public static Map<Integer, ParticleAnimationFrame> getAnimationFrames(MemorySegment mem, int offset)
    • hasFrameSize

      public static boolean hasFrameSize(MemorySegment mem, int offset)
    • hasInitialAnimationFrame

      public static boolean hasInitialAnimationFrame(MemorySegment mem, int offset)
    • hasCollisionAnimationFrame

      public static boolean hasCollisionAnimationFrame(MemorySegment mem, int offset)
    • hasTexturePath

      public static boolean hasTexturePath(MemorySegment mem, int offset)
    • hasAnimationFrames

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

      public static Particle toObject(MemorySegment mem)
    • toObject

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object