Class InteractionEffects

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

public class InteractionEffects 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:
    • particles

      @Nullable public ModelParticle[] particles
    • firstPersonParticles

      @Nullable public ModelParticle[] firstPersonParticles
    • worldSoundEventIndex

      public int worldSoundEventIndex
    • localSoundEventIndex

      public int localSoundEventIndex
    • trails

      @Nullable public ModelTrail[] trails
    • waitForAnimationToFinish

      public boolean waitForAnimationToFinish
    • itemPlayerAnimationsId

      @Nullable public String itemPlayerAnimationsId
    • itemAnimationId

      @Nullable public String itemAnimationId
    • clearAnimationOnFinish

      public boolean clearAnimationOnFinish
    • clearSoundEventOnFinish

      public boolean clearSoundEventOnFinish
    • hideFirstPersonHeldItem

      public boolean hideFirstPersonHeldItem
    • cameraShake

      @Nullable public CameraShakeEffect cameraShake
    • movementEffects

      @Nullable public MovementEffects movementEffects
    • zoom

      @Nullable public ZoomConfig zoom
    • persistZoom

      public boolean persistZoom
    • startDelay

      public float startDelay
  • Constructor Details

    • InteractionEffects

      public InteractionEffects()
    • InteractionEffects

      public InteractionEffects(@Nullable ModelParticle[] particles, @Nullable ModelParticle[] firstPersonParticles, int worldSoundEventIndex, int localSoundEventIndex, @Nullable ModelTrail[] trails, boolean waitForAnimationToFinish, @Nullable String itemPlayerAnimationsId, @Nullable String itemAnimationId, boolean clearAnimationOnFinish, boolean clearSoundEventOnFinish, boolean hideFirstPersonHeldItem, @Nullable CameraShakeEffect cameraShake, @Nullable MovementEffects movementEffects, @Nullable ZoomConfig zoom, boolean persistZoom, float startDelay)
    • InteractionEffects

      public InteractionEffects(@Nonnull InteractionEffects 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.
    • getParticles

      @Nullable public static ModelParticle[] getParticles(MemorySegment mem)
    • getParticles

      @Nullable public static ModelParticle[] getParticles(MemorySegment mem, int offset)
    • getFirstPersonParticles

      @Nullable public static ModelParticle[] getFirstPersonParticles(MemorySegment mem)
    • getFirstPersonParticles

      @Nullable public static ModelParticle[] getFirstPersonParticles(MemorySegment mem, int offset)
    • getWorldSoundEventIndex

      public static int getWorldSoundEventIndex(MemorySegment mem)
    • getWorldSoundEventIndex

      public static int getWorldSoundEventIndex(MemorySegment mem, int offset)
    • getLocalSoundEventIndex

      public static int getLocalSoundEventIndex(MemorySegment mem)
    • getLocalSoundEventIndex

      public static int getLocalSoundEventIndex(MemorySegment mem, int offset)
    • getTrails

      @Nullable public static ModelTrail[] getTrails(MemorySegment mem)
    • getTrails

      @Nullable public static ModelTrail[] getTrails(MemorySegment mem, int offset)
    • getWaitForAnimationToFinish

      public static boolean getWaitForAnimationToFinish(MemorySegment mem)
    • getWaitForAnimationToFinish

      public static boolean getWaitForAnimationToFinish(MemorySegment mem, int offset)
    • getItemPlayerAnimationsId

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

      @Nullable public static String getItemPlayerAnimationsId(MemorySegment mem, int offset)
    • getItemAnimationId

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

      @Nullable public static String getItemAnimationId(MemorySegment mem, int offset)
    • getClearAnimationOnFinish

      public static boolean getClearAnimationOnFinish(MemorySegment mem)
    • getClearAnimationOnFinish

      public static boolean getClearAnimationOnFinish(MemorySegment mem, int offset)
    • getClearSoundEventOnFinish

      public static boolean getClearSoundEventOnFinish(MemorySegment mem)
    • getClearSoundEventOnFinish

      public static boolean getClearSoundEventOnFinish(MemorySegment mem, int offset)
    • getHideFirstPersonHeldItem

      public static boolean getHideFirstPersonHeldItem(MemorySegment mem)
    • getHideFirstPersonHeldItem

      public static boolean getHideFirstPersonHeldItem(MemorySegment mem, int offset)
    • getCameraShake

      @Nullable public static CameraShakeEffect getCameraShake(MemorySegment mem)
    • getCameraShake

      @Nullable public static CameraShakeEffect getCameraShake(MemorySegment mem, int offset)
    • getMovementEffects

      @Nullable public static MovementEffects getMovementEffects(MemorySegment mem)
    • getMovementEffects

      @Nullable public static MovementEffects getMovementEffects(MemorySegment mem, int offset)
    • getZoom

      @Nullable public static ZoomConfig getZoom(MemorySegment mem)
    • getZoom

      @Nullable public static ZoomConfig getZoom(MemorySegment mem, int offset)
    • getPersistZoom

      public static boolean getPersistZoom(MemorySegment mem)
    • getPersistZoom

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

      public static float getStartDelay(MemorySegment mem)
    • getStartDelay

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

      public static boolean hasCameraShake(MemorySegment mem, int offset)
    • hasMovementEffects

      public static boolean hasMovementEffects(MemorySegment mem, int offset)
    • hasParticles

      public static boolean hasParticles(MemorySegment mem, int offset)
    • hasFirstPersonParticles

      public static boolean hasFirstPersonParticles(MemorySegment mem, int offset)
    • hasTrails

      public static boolean hasTrails(MemorySegment mem, int offset)
    • hasItemPlayerAnimationsId

      public static boolean hasItemPlayerAnimationsId(MemorySegment mem, int offset)
    • hasItemAnimationId

      public static boolean hasItemAnimationId(MemorySegment mem, int offset)
    • hasZoom

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

      public static InteractionEffects toObject(MemorySegment mem)
    • toObject

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object