Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- type
- hitboxOffset
- unknown
- entityStatIndex
- combatTextRandomPositionOffsetRange
- combatTextViewportMargin
- combatTextDuration
- combatTextHitAngleModifierStrength
- combatTextFontSize
- combatTextColor
- combatTextAnimationEvents
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getType(MemorySegment)
- getType(MemorySegment, int)
- getHitboxOffset(MemorySegment)
- getHitboxOffset(MemorySegment, int)
- getUnknown(MemorySegment)
- getUnknown(MemorySegment, int)
- getEntityStatIndex(MemorySegment)
- getEntityStatIndex(MemorySegment, int)
- getCombatTextRandomPositionOffsetRange(MemorySegment)
- getCombatTextRandomPositionOffsetRange(MemorySegment, int)
- getCombatTextViewportMargin(MemorySegment)
- getCombatTextViewportMargin(MemorySegment, int)
- getCombatTextDuration(MemorySegment)
- getCombatTextDuration(MemorySegment, int)
- getCombatTextHitAngleModifierStrength(MemorySegment)
- getCombatTextHitAngleModifierStrength(MemorySegment, int)
- getCombatTextFontSize(MemorySegment)
- getCombatTextFontSize(MemorySegment, int)
- getCombatTextColor(MemorySegment)
- getCombatTextColor(MemorySegment, int)
- getCombatTextAnimationEvents(MemorySegment)
- getCombatTextAnimationEvents(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class EntityUIComponent
java.lang.Object
com.hypixel.hytale.protocol.EntityUIComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatintstatic final intorg.joml.Vector2fcstatic final intstatic final intbooleanstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionEntityUIComponent(EntityUIType type, org.joml.Vector2fc hitboxOffset, boolean unknown, int entityStatIndex, RangeVector2f combatTextRandomPositionOffsetRange, float combatTextViewportMargin, float combatTextDuration, float combatTextHitAngleModifierStrength, float combatTextFontSize, Color combatTextColor, CombatTextEntityUIComponentAnimationEvent[] combatTextAnimationEvents) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleangetCombatTextAnimationEvents(MemorySegment mem, int offset) static Colorstatic ColorgetCombatTextColor(MemorySegment mem, int offset) static floatstatic floatgetCombatTextDuration(MemorySegment mem, int offset) static floatstatic floatgetCombatTextFontSize(MemorySegment mem, int offset) static floatstatic floatgetCombatTextHitAngleModifierStrength(MemorySegment mem, int offset) static RangeVector2fstatic RangeVector2fgetCombatTextRandomPositionOffsetRange(MemorySegment mem, int offset) static floatstatic floatgetCombatTextViewportMargin(MemorySegment mem, int offset) static intstatic intgetEntityStatIndex(MemorySegment mem, int offset) static org.joml.Vector2fcstatic org.joml.Vector2fcgetHitboxOffset(MemorySegment mem, int offset) static EntityUITypegetType(MemorySegment mem) static EntityUITypegetType(MemorySegment mem, int offset) static booleangetUnknown(MemorySegment mem) static booleangetUnknown(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static EntityUIComponenttoObject(MemorySegment mem) static EntityUIComponenttoObject(MemorySegment mem, int offset) static EntityUIComponenttoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one EntityUIComponent 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:
-
type
-
hitboxOffset
@Nonnull public org.joml.Vector2fc hitboxOffset -
unknown
public boolean unknown -
entityStatIndex
public int entityStatIndex -
combatTextRandomPositionOffsetRange
-
combatTextViewportMargin
public float combatTextViewportMargin -
combatTextDuration
public float combatTextDuration -
combatTextHitAngleModifierStrength
public float combatTextHitAngleModifierStrength -
combatTextFontSize
public float combatTextFontSize -
combatTextColor
-
combatTextAnimationEvents
-
-
Constructor Details
-
EntityUIComponent
public EntityUIComponent() -
EntityUIComponent
public EntityUIComponent(@Nonnull EntityUIType type, @Nonnull org.joml.Vector2fc hitboxOffset, boolean unknown, int entityStatIndex, @Nonnull RangeVector2f combatTextRandomPositionOffsetRange, float combatTextViewportMargin, float combatTextDuration, float combatTextHitAngleModifierStrength, float combatTextFontSize, @Nonnull Color combatTextColor, @Nonnull CombatTextEntityUIComponentAnimationEvent[] combatTextAnimationEvents) -
EntityUIComponent
-
-
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. -
getType
-
getType
-
getHitboxOffset
-
getHitboxOffset
-
getUnknown
-
getUnknown
-
getEntityStatIndex
-
getEntityStatIndex
-
getCombatTextRandomPositionOffsetRange
-
getCombatTextRandomPositionOffsetRange
-
getCombatTextViewportMargin
-
getCombatTextViewportMargin
-
getCombatTextDuration
-
getCombatTextDuration
-
getCombatTextHitAngleModifierStrength
-
getCombatTextHitAngleModifierStrength
-
getCombatTextFontSize
-
getCombatTextFontSize
-
getCombatTextColor
-
getCombatTextColor
-
getCombatTextAnimationEvents
public static CombatTextEntityUIComponentAnimationEvent[] getCombatTextAnimationEvents(MemorySegment mem) -
getCombatTextAnimationEvents
public static CombatTextEntityUIComponentAnimationEvent[] getCombatTextAnimationEvents(MemorySegment mem, int offset) -
toObject
-
toObject
-
toObject
public static EntityUIComponent toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one EntityUIComponent 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
-