Class ItemAnimation

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

public class ItemAnimation 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:
    • thirdPerson

      @Nullable public String thirdPerson
    • thirdPersonMoving

      @Nullable public String thirdPersonMoving
    • thirdPersonFace

      @Nullable public String thirdPersonFace
    • firstPerson

      @Nullable public String firstPerson
    • firstPersonOverride

      @Nullable public String firstPersonOverride
    • keepPreviousFirstPersonAnimation

      public boolean keepPreviousFirstPersonAnimation
    • speed

      public float speed
    • blendingDuration

      public float blendingDuration
    • looping

      public boolean looping
    • clipsGeometry

      public boolean clipsGeometry
  • Constructor Details

    • ItemAnimation

      public ItemAnimation()
    • ItemAnimation

      public ItemAnimation(@Nullable String thirdPerson, @Nullable String thirdPersonMoving, @Nullable String thirdPersonFace, @Nullable String firstPerson, @Nullable String firstPersonOverride, boolean keepPreviousFirstPersonAnimation, float speed, float blendingDuration, boolean looping, boolean clipsGeometry)
    • ItemAnimation

      public ItemAnimation(@Nonnull ItemAnimation 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.
    • getThirdPerson

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

      @Nullable public static String getThirdPerson(MemorySegment mem, int offset)
    • getThirdPersonMoving

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

      @Nullable public static String getThirdPersonMoving(MemorySegment mem, int offset)
    • getThirdPersonFace

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

      @Nullable public static String getThirdPersonFace(MemorySegment mem, int offset)
    • getFirstPerson

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

      @Nullable public static String getFirstPerson(MemorySegment mem, int offset)
    • getFirstPersonOverride

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

      @Nullable public static String getFirstPersonOverride(MemorySegment mem, int offset)
    • getKeepPreviousFirstPersonAnimation

      public static boolean getKeepPreviousFirstPersonAnimation(MemorySegment mem)
    • getKeepPreviousFirstPersonAnimation

      public static boolean getKeepPreviousFirstPersonAnimation(MemorySegment mem, int offset)
    • getSpeed

      public static float getSpeed(MemorySegment mem)
    • getSpeed

      public static float getSpeed(MemorySegment mem, int offset)
    • getBlendingDuration

      public static float getBlendingDuration(MemorySegment mem)
    • getBlendingDuration

      public static float getBlendingDuration(MemorySegment mem, int offset)
    • getLooping

      public static boolean getLooping(MemorySegment mem)
    • getLooping

      public static boolean getLooping(MemorySegment mem, int offset)
    • getClipsGeometry

      public static boolean getClipsGeometry(MemorySegment mem)
    • getClipsGeometry

      public static boolean getClipsGeometry(MemorySegment mem, int offset)
    • hasThirdPerson

      public static boolean hasThirdPerson(MemorySegment mem, int offset)
    • hasThirdPersonMoving

      public static boolean hasThirdPersonMoving(MemorySegment mem, int offset)
    • hasThirdPersonFace

      public static boolean hasThirdPersonFace(MemorySegment mem, int offset)
    • hasFirstPerson

      public static boolean hasFirstPerson(MemorySegment mem, int offset)
    • hasFirstPersonOverride

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

      public static ItemAnimation toObject(MemorySegment mem)
    • toObject

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object