Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getId(MemorySegment)
- getId(MemorySegment, int)
- getName(MemorySegment)
- getName(MemorySegment, int)
- getApplicationEffects(MemorySegment)
- getApplicationEffects(MemorySegment, int)
- getWorldRemovalSoundEventIndex(MemorySegment)
- getWorldRemovalSoundEventIndex(MemorySegment, int)
- getLocalRemovalSoundEventIndex(MemorySegment)
- getLocalRemovalSoundEventIndex(MemorySegment, int)
- getModelOverride(MemorySegment)
- getModelOverride(MemorySegment, int)
- getDuration(MemorySegment)
- getDuration(MemorySegment, int)
- getInfinite(MemorySegment)
- getInfinite(MemorySegment, int)
- getDebuff(MemorySegment)
- getDebuff(MemorySegment, int)
- getStatusEffectIcon(MemorySegment)
- getStatusEffectIcon(MemorySegment, int)
- getOverlapBehavior(MemorySegment)
- getOverlapBehavior(MemorySegment, int)
- getDamageCalculatorCooldown(MemorySegment)
- getDamageCalculatorCooldown(MemorySegment, int)
- getStatModifiers(MemorySegment)
- getStatModifiers(MemorySegment, int)
- getValueType(MemorySegment)
- getValueType(MemorySegment, int)
- hasId(MemorySegment, int)
- hasName(MemorySegment, int)
- hasApplicationEffects(MemorySegment, int)
- hasModelOverride(MemorySegment, int)
- hasStatusEffectIcon(MemorySegment, int)
- hasStatModifiers(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class EntityEffect
java.lang.Object
com.hypixel.hytale.protocol.EntityEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoublebooleanfloatstatic final intbooleanintstatic final intstatic final intstatic final intstatic final intint -
Constructor Summary
ConstructorsConstructorDescriptionEntityEffect(EntityEffect other) EntityEffect(String id, String name, ApplicationEffects applicationEffects, int worldRemovalSoundEventIndex, int localRemovalSoundEventIndex, ModelOverride modelOverride, float duration, boolean infinite, boolean debuff, String statusEffectIcon, OverlapBehavior overlapBehavior, double damageCalculatorCooldown, Map<Integer, Float> statModifiers, ValueType valueType) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic ApplicationEffectsstatic ApplicationEffectsgetApplicationEffects(MemorySegment mem, int offset) static doublestatic doublegetDamageCalculatorCooldown(MemorySegment mem, int offset) static booleangetDebuff(MemorySegment mem) static booleangetDebuff(MemorySegment mem, int offset) static floatgetDuration(MemorySegment mem) static floatgetDuration(MemorySegment mem, int offset) static StringgetId(MemorySegment mem) static StringgetId(MemorySegment mem, int offset) static booleangetInfinite(MemorySegment mem) static booleangetInfinite(MemorySegment mem, int offset) static intstatic intgetLocalRemovalSoundEventIndex(MemorySegment mem, int offset) static ModelOverridestatic ModelOverridegetModelOverride(MemorySegment mem, int offset) static StringgetName(MemorySegment mem) static StringgetName(MemorySegment mem, int offset) static OverlapBehaviorstatic OverlapBehaviorgetOverlapBehavior(MemorySegment mem, int offset) getStatModifiers(MemorySegment mem, int offset) static Stringstatic StringgetStatusEffectIcon(MemorySegment mem, int offset) static ValueTypestatic ValueTypegetValueType(MemorySegment mem, int offset) static intstatic intgetWorldRemovalSoundEventIndex(MemorySegment mem, int offset) static booleanhasApplicationEffects(MemorySegment mem, int offset) inthashCode()static booleanhasId(MemorySegment mem, int offset) static booleanhasModelOverride(MemorySegment mem, int offset) static booleanhasName(MemorySegment mem, int offset) static booleanhasStatModifiers(MemorySegment mem, int offset) static booleanhasStatusEffectIcon(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static EntityEffecttoObject(MemorySegment mem) static EntityEffecttoObject(MemorySegment mem, int offset) static EntityEffecttoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one EntityEffect and reports the end of its encoding through the cursor.
-
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
-
name
-
applicationEffects
-
worldRemovalSoundEventIndex
public int worldRemovalSoundEventIndex -
localRemovalSoundEventIndex
public int localRemovalSoundEventIndex -
modelOverride
-
duration
public float duration -
infinite
public boolean infinite -
debuff
public boolean debuff -
statusEffectIcon
-
overlapBehavior
-
damageCalculatorCooldown
public double damageCalculatorCooldown -
statModifiers
-
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
-
-
Method Details
-
requireBounds
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
-
getId
-
getName
-
getName
-
getApplicationEffects
-
getApplicationEffects
-
getWorldRemovalSoundEventIndex
-
getWorldRemovalSoundEventIndex
-
getLocalRemovalSoundEventIndex
-
getLocalRemovalSoundEventIndex
-
getModelOverride
-
getModelOverride
-
getDuration
-
getDuration
-
getInfinite
-
getInfinite
-
getDebuff
-
getDebuff
-
getStatusEffectIcon
-
getStatusEffectIcon
-
getOverlapBehavior
-
getOverlapBehavior
-
getDamageCalculatorCooldown
-
getDamageCalculatorCooldown
-
getStatModifiers
-
getStatModifiers
-
getValueType
-
getValueType
-
hasId
-
hasName
-
hasApplicationEffects
-
hasModelOverride
-
hasStatusEffectIcon
-
hasStatModifiers
-
toObject
-
toObject
-
toObject
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
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-