Class EntityEffect

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

public class EntityEffect 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
    • name

      @Nullable public String name
    • applicationEffects

      @Nullable public ApplicationEffects applicationEffects
    • worldRemovalSoundEventIndex

      public int worldRemovalSoundEventIndex
    • localRemovalSoundEventIndex

      public int localRemovalSoundEventIndex
    • modelOverride

      @Nullable public ModelOverride modelOverride
    • duration

      public float duration
    • infinite

      public boolean infinite
    • debuff

      public boolean debuff
    • statusEffectIcon

      @Nullable public String statusEffectIcon
    • overlapBehavior

      @Nonnull public OverlapBehavior overlapBehavior
    • damageCalculatorCooldown

      public double damageCalculatorCooldown
    • statModifiers

      @Nullable public Map<Integer,Float> statModifiers
    • valueType

      @Nonnull public ValueType valueType
  • Constructor Details

    • EntityEffect

      public EntityEffect()
    • EntityEffect

      public EntityEffect(@Nullable String id, @Nullable String name, @Nullable ApplicationEffects applicationEffects, int worldRemovalSoundEventIndex, int localRemovalSoundEventIndex, @Nullable ModelOverride modelOverride, float duration, boolean infinite, boolean debuff, @Nullable String statusEffectIcon, @Nonnull OverlapBehavior overlapBehavior, double damageCalculatorCooldown, @Nullable Map<Integer,Float> statModifiers, @Nonnull ValueType valueType)
    • EntityEffect

      public EntityEffect(@Nonnull EntityEffect 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)
    • getName

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

      @Nullable public static String getName(MemorySegment mem, int offset)
    • getApplicationEffects

      @Nullable public static ApplicationEffects getApplicationEffects(MemorySegment mem)
    • getApplicationEffects

      @Nullable public static ApplicationEffects getApplicationEffects(MemorySegment mem, int offset)
    • getWorldRemovalSoundEventIndex

      public static int getWorldRemovalSoundEventIndex(MemorySegment mem)
    • getWorldRemovalSoundEventIndex

      public static int getWorldRemovalSoundEventIndex(MemorySegment mem, int offset)
    • getLocalRemovalSoundEventIndex

      public static int getLocalRemovalSoundEventIndex(MemorySegment mem)
    • getLocalRemovalSoundEventIndex

      public static int getLocalRemovalSoundEventIndex(MemorySegment mem, int offset)
    • getModelOverride

      @Nullable public static ModelOverride getModelOverride(MemorySegment mem)
    • getModelOverride

      @Nullable public static ModelOverride getModelOverride(MemorySegment mem, int offset)
    • getDuration

      public static float getDuration(MemorySegment mem)
    • getDuration

      public static float getDuration(MemorySegment mem, int offset)
    • getInfinite

      public static boolean getInfinite(MemorySegment mem)
    • getInfinite

      public static boolean getInfinite(MemorySegment mem, int offset)
    • getDebuff

      public static boolean getDebuff(MemorySegment mem)
    • getDebuff

      public static boolean getDebuff(MemorySegment mem, int offset)
    • getStatusEffectIcon

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

      @Nullable public static String getStatusEffectIcon(MemorySegment mem, int offset)
    • getOverlapBehavior

      public static OverlapBehavior getOverlapBehavior(MemorySegment mem)
    • getOverlapBehavior

      public static OverlapBehavior getOverlapBehavior(MemorySegment mem, int offset)
    • getDamageCalculatorCooldown

      public static double getDamageCalculatorCooldown(MemorySegment mem)
    • getDamageCalculatorCooldown

      public static double getDamageCalculatorCooldown(MemorySegment mem, int offset)
    • getStatModifiers

      @Nullable public static Map<Integer,Float> getStatModifiers(MemorySegment mem)
    • getStatModifiers

      @Nullable public static Map<Integer,Float> getStatModifiers(MemorySegment mem, int offset)
    • getValueType

      public static ValueType getValueType(MemorySegment mem)
    • getValueType

      public static ValueType getValueType(MemorySegment mem, int offset)
    • hasId

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

      public static boolean hasName(MemorySegment mem, int offset)
    • hasApplicationEffects

      public static boolean hasApplicationEffects(MemorySegment mem, int offset)
    • hasModelOverride

      public static boolean hasModelOverride(MemorySegment mem, int offset)
    • hasStatusEffectIcon

      public static boolean hasStatusEffectIcon(MemorySegment mem, int offset)
    • hasStatModifiers

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

      public static EntityEffect toObject(MemorySegment mem)
    • toObject

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object