Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getId(MemorySegment)
- getId(MemorySegment, int)
- getTexture(MemorySegment)
- getTexture(MemorySegment, int)
- getLifeSpan(MemorySegment)
- getLifeSpan(MemorySegment, int)
- getRoll(MemorySegment)
- getRoll(MemorySegment, int)
- getStart(MemorySegment)
- getStart(MemorySegment, int)
- getEnd(MemorySegment)
- getEnd(MemorySegment, int)
- getLightInfluence(MemorySegment)
- getLightInfluence(MemorySegment, int)
- getRenderMode(MemorySegment)
- getRenderMode(MemorySegment, int)
- getIntersectionHighlight(MemorySegment)
- getIntersectionHighlight(MemorySegment, int)
- getSmooth(MemorySegment)
- getSmooth(MemorySegment, int)
- getFrameSize(MemorySegment)
- getFrameSize(MemorySegment, int)
- getFrameRange(MemorySegment)
- getFrameRange(MemorySegment, int)
- getFrameLifeSpan(MemorySegment)
- getFrameLifeSpan(MemorySegment, int)
- hasStart(MemorySegment, int)
- hasEnd(MemorySegment, int)
- hasIntersectionHighlight(MemorySegment, int)
- hasFrameSize(MemorySegment, int)
- hasFrameRange(MemorySegment, int)
- hasId(MemorySegment, int)
- hasTexture(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class Trail
java.lang.Object
com.hypixel.hytale.protocol.Trail
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intintintfloatstatic final intstatic final intfloatbooleanstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic EdgegetEnd(MemorySegment mem) static EdgegetEnd(MemorySegment mem, int offset) static intstatic intgetFrameLifeSpan(MemorySegment mem, int offset) static Rangestatic RangegetFrameRange(MemorySegment mem, int offset) static Vector2istatic Vector2igetFrameSize(MemorySegment mem, int offset) static StringgetId(MemorySegment mem) static StringgetId(MemorySegment mem, int offset) static IntersectionHighlightstatic IntersectionHighlightgetIntersectionHighlight(MemorySegment mem, int offset) static intgetLifeSpan(MemorySegment mem) static intgetLifeSpan(MemorySegment mem, int offset) static floatstatic floatgetLightInfluence(MemorySegment mem, int offset) static FXRenderModestatic FXRenderModegetRenderMode(MemorySegment mem, int offset) static floatgetRoll(MemorySegment mem) static floatgetRoll(MemorySegment mem, int offset) static booleangetSmooth(MemorySegment mem) static booleangetSmooth(MemorySegment mem, int offset) static EdgegetStart(MemorySegment mem) static EdgegetStart(MemorySegment mem, int offset) static StringgetTexture(MemorySegment mem) static StringgetTexture(MemorySegment mem, int offset) static booleanhasEnd(MemorySegment mem, int offset) static booleanhasFrameRange(MemorySegment mem, int offset) static booleanhasFrameSize(MemorySegment mem, int offset) inthashCode()static booleanhasId(MemorySegment mem, int offset) static booleanhasIntersectionHighlight(MemorySegment mem, int offset) static booleanhasStart(MemorySegment mem, int offset) static booleanhasTexture(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static TrailtoObject(MemorySegment mem) static TrailtoObject(MemorySegment mem, int offset) static TrailtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one Trail 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
-
texture
-
lifeSpan
public int lifeSpan -
roll
public float roll -
start
-
end
-
lightInfluence
public float lightInfluence -
renderMode
-
intersectionHighlight
-
smooth
public boolean smooth -
frameSize
-
frameRange
-
frameLifeSpan
public int frameLifeSpan
-
-
Constructor Details
-
Trail
public Trail() -
Trail
public Trail(@Nullable String id, @Nullable String texture, int lifeSpan, float roll, @Nullable Edge start, @Nullable Edge end, float lightInfluence, @Nonnull FXRenderMode renderMode, @Nullable IntersectionHighlight intersectionHighlight, boolean smooth, @Nullable Vector2i frameSize, @Nullable Range frameRange, int frameLifeSpan) -
Trail
-
-
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
-
getTexture
-
getTexture
-
getLifeSpan
-
getLifeSpan
-
getRoll
-
getRoll
-
getStart
-
getStart
-
getEnd
-
getEnd
-
getLightInfluence
-
getLightInfluence
-
getRenderMode
-
getRenderMode
-
getIntersectionHighlight
-
getIntersectionHighlight
@Nullable public static IntersectionHighlight getIntersectionHighlight(MemorySegment mem, int offset) -
getSmooth
-
getSmooth
-
getFrameSize
-
getFrameSize
-
getFrameRange
-
getFrameRange
-
getFrameLifeSpan
-
getFrameLifeSpan
-
hasStart
-
hasEnd
-
hasIntersectionHighlight
-
hasFrameSize
-
hasFrameRange
-
hasId
-
hasTexture
-
toObject
-
toObject
-
toObject
Decodes one Trail 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
-