Class ApplicationEffects

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

public class ApplicationEffects 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:
    • entityBottomTint

      @Nullable public Color entityBottomTint
    • entityTopTint

      @Nullable public Color entityTopTint
    • entityAnimationId

      @Nullable public String entityAnimationId
    • particles

      @Nullable public ModelParticle[] particles
    • firstPersonParticles

      @Nullable public ModelParticle[] firstPersonParticles
    • screenEffect

      @Nullable public String screenEffect
    • horizontalSpeedMultiplier

      public float horizontalSpeedMultiplier
    • soundEventIndexLocal

      public int soundEventIndexLocal
    • soundEventIndexWorld

      public int soundEventIndexWorld
    • modelVFXId

      @Nullable public String modelVFXId
    • movementEffects

      @Nullable public MovementEffects movementEffects
    • mouseSensitivityAdjustmentTarget

      public float mouseSensitivityAdjustmentTarget
    • mouseSensitivityAdjustmentDuration

      public float mouseSensitivityAdjustmentDuration
    • abilityEffects

      @Nullable public AbilityEffects abilityEffects
  • Constructor Details

    • ApplicationEffects

      public ApplicationEffects()
    • ApplicationEffects

      public ApplicationEffects(@Nullable Color entityBottomTint, @Nullable Color entityTopTint, @Nullable String entityAnimationId, @Nullable ModelParticle[] particles, @Nullable ModelParticle[] firstPersonParticles, @Nullable String screenEffect, float horizontalSpeedMultiplier, int soundEventIndexLocal, int soundEventIndexWorld, @Nullable String modelVFXId, @Nullable MovementEffects movementEffects, float mouseSensitivityAdjustmentTarget, float mouseSensitivityAdjustmentDuration, @Nullable AbilityEffects abilityEffects)
    • ApplicationEffects

      public ApplicationEffects(@Nonnull ApplicationEffects 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.
    • getEntityBottomTint

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

      @Nullable public static Color getEntityBottomTint(MemorySegment mem, int offset)
    • getEntityTopTint

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

      @Nullable public static Color getEntityTopTint(MemorySegment mem, int offset)
    • getEntityAnimationId

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

      @Nullable public static String getEntityAnimationId(MemorySegment mem, int offset)
    • 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)
    • getScreenEffect

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

      @Nullable public static String getScreenEffect(MemorySegment mem, int offset)
    • getHorizontalSpeedMultiplier

      public static float getHorizontalSpeedMultiplier(MemorySegment mem)
    • getHorizontalSpeedMultiplier

      public static float getHorizontalSpeedMultiplier(MemorySegment mem, int offset)
    • getSoundEventIndexLocal

      public static int getSoundEventIndexLocal(MemorySegment mem)
    • getSoundEventIndexLocal

      public static int getSoundEventIndexLocal(MemorySegment mem, int offset)
    • getSoundEventIndexWorld

      public static int getSoundEventIndexWorld(MemorySegment mem)
    • getSoundEventIndexWorld

      public static int getSoundEventIndexWorld(MemorySegment mem, int offset)
    • getModelVFXId

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

      @Nullable public static String getModelVFXId(MemorySegment mem, int offset)
    • getMovementEffects

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

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

      public static float getMouseSensitivityAdjustmentTarget(MemorySegment mem)
    • getMouseSensitivityAdjustmentTarget

      public static float getMouseSensitivityAdjustmentTarget(MemorySegment mem, int offset)
    • getMouseSensitivityAdjustmentDuration

      public static float getMouseSensitivityAdjustmentDuration(MemorySegment mem)
    • getMouseSensitivityAdjustmentDuration

      public static float getMouseSensitivityAdjustmentDuration(MemorySegment mem, int offset)
    • getAbilityEffects

      @Nullable public static AbilityEffects getAbilityEffects(MemorySegment mem)
    • getAbilityEffects

      @Nullable public static AbilityEffects getAbilityEffects(MemorySegment mem, int offset)
    • hasEntityBottomTint

      public static boolean hasEntityBottomTint(MemorySegment mem, int offset)
    • hasEntityTopTint

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

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

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

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

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

      public static boolean hasScreenEffect(MemorySegment mem, int offset)
    • hasModelVFXId

      public static boolean hasModelVFXId(MemorySegment mem, int offset)
    • hasAbilityEffects

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

      public static ApplicationEffects toObject(MemorySegment mem)
    • toObject

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object