Class ModelVFX

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

public class ModelVFX 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
    • switchTo

      @Nonnull public SwitchTo switchTo
    • effectDirection

      @Nonnull public EffectDirection effectDirection
    • animationDuration

      public float animationDuration
    • animationRange

      @Nullable public org.joml.Vector2fc animationRange
    • loopOption

      @Nonnull public LoopOption loopOption
    • curveType

      @Nonnull public CurveType curveType
    • highlightColor

      @Nullable public Color highlightColor
    • highlightThickness

      public float highlightThickness
    • useBloomOnHighlight

      public boolean useBloomOnHighlight
    • useProgessiveHighlight

      public boolean useProgessiveHighlight
    • noiseScale

      @Nullable public org.joml.Vector2fc noiseScale
    • noiseScrollSpeed

      @Nullable public org.joml.Vector2fc noiseScrollSpeed
    • postColor

      @Nullable public Color postColor
    • postColorOpacity

      public float postColorOpacity
    • opacity

      public float opacity
  • Constructor Details

    • ModelVFX

      public ModelVFX()
    • ModelVFX

      public ModelVFX(@Nullable String id, @Nonnull SwitchTo switchTo, @Nonnull EffectDirection effectDirection, float animationDuration, @Nullable org.joml.Vector2fc animationRange, @Nonnull LoopOption loopOption, @Nonnull CurveType curveType, @Nullable Color highlightColor, float highlightThickness, boolean useBloomOnHighlight, boolean useProgessiveHighlight, @Nullable org.joml.Vector2fc noiseScale, @Nullable org.joml.Vector2fc noiseScrollSpeed, @Nullable Color postColor, float postColorOpacity, float opacity)
    • ModelVFX

      public ModelVFX(@Nonnull ModelVFX 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)
    • getSwitchTo

      public static SwitchTo getSwitchTo(MemorySegment mem)
    • getSwitchTo

      public static SwitchTo getSwitchTo(MemorySegment mem, int offset)
    • getEffectDirection

      public static EffectDirection getEffectDirection(MemorySegment mem)
    • getEffectDirection

      public static EffectDirection getEffectDirection(MemorySegment mem, int offset)
    • getAnimationDuration

      public static float getAnimationDuration(MemorySegment mem)
    • getAnimationDuration

      public static float getAnimationDuration(MemorySegment mem, int offset)
    • getAnimationRange

      @Nullable public static org.joml.Vector2fc getAnimationRange(MemorySegment mem)
    • getAnimationRange

      @Nullable public static org.joml.Vector2fc getAnimationRange(MemorySegment mem, int offset)
    • getLoopOption

      public static LoopOption getLoopOption(MemorySegment mem)
    • getLoopOption

      public static LoopOption getLoopOption(MemorySegment mem, int offset)
    • getCurveType

      public static CurveType getCurveType(MemorySegment mem)
    • getCurveType

      public static CurveType getCurveType(MemorySegment mem, int offset)
    • getHighlightColor

      @Nullable public static Color getHighlightColor(MemorySegment mem)
    • getHighlightColor

      @Nullable public static Color getHighlightColor(MemorySegment mem, int offset)
    • getHighlightThickness

      public static float getHighlightThickness(MemorySegment mem)
    • getHighlightThickness

      public static float getHighlightThickness(MemorySegment mem, int offset)
    • getUseBloomOnHighlight

      public static boolean getUseBloomOnHighlight(MemorySegment mem)
    • getUseBloomOnHighlight

      public static boolean getUseBloomOnHighlight(MemorySegment mem, int offset)
    • getUseProgessiveHighlight

      public static boolean getUseProgessiveHighlight(MemorySegment mem)
    • getUseProgessiveHighlight

      public static boolean getUseProgessiveHighlight(MemorySegment mem, int offset)
    • getNoiseScale

      @Nullable public static org.joml.Vector2fc getNoiseScale(MemorySegment mem)
    • getNoiseScale

      @Nullable public static org.joml.Vector2fc getNoiseScale(MemorySegment mem, int offset)
    • getNoiseScrollSpeed

      @Nullable public static org.joml.Vector2fc getNoiseScrollSpeed(MemorySegment mem)
    • getNoiseScrollSpeed

      @Nullable public static org.joml.Vector2fc getNoiseScrollSpeed(MemorySegment mem, int offset)
    • getPostColor

      @Nullable public static Color getPostColor(MemorySegment mem)
    • getPostColor

      @Nullable public static Color getPostColor(MemorySegment mem, int offset)
    • getPostColorOpacity

      public static float getPostColorOpacity(MemorySegment mem)
    • getPostColorOpacity

      public static float getPostColorOpacity(MemorySegment mem, int offset)
    • getOpacity

      public static float getOpacity(MemorySegment mem)
    • getOpacity

      public static float getOpacity(MemorySegment mem, int offset)
    • hasAnimationRange

      public static boolean hasAnimationRange(MemorySegment mem, int offset)
    • hasHighlightColor

      public static boolean hasHighlightColor(MemorySegment mem, int offset)
    • hasNoiseScale

      public static boolean hasNoiseScale(MemorySegment mem, int offset)
    • hasNoiseScrollSpeed

      public static boolean hasNoiseScrollSpeed(MemorySegment mem, int offset)
    • hasPostColor

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

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

      public static ModelVFX toObject(MemorySegment mem)
    • toObject

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object