Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getExtendTop(MemorySegment)
- getExtendTop(MemorySegment, int)
- getExtendBottom(MemorySegment)
- getExtendBottom(MemorySegment, int)
- getExtendLeft(MemorySegment)
- getExtendLeft(MemorySegment, int)
- getExtendRight(MemorySegment)
- getExtendRight(MemorySegment, int)
- getYawOffset(MemorySegment)
- getYawOffset(MemorySegment, int)
- getPitchOffset(MemorySegment)
- getPitchOffset(MemorySegment, int)
- getRollOffset(MemorySegment)
- getRollOffset(MemorySegment, int)
- getStartDistance(MemorySegment)
- getStartDistance(MemorySegment, int)
- getEndDistance(MemorySegment)
- getEndDistance(MemorySegment, int)
- getTestLineOfSight(MemorySegment)
- getTestLineOfSight(MemorySegment, int)
- getIgnorePitch(MemorySegment)
- getIgnorePitch(MemorySegment, int)
- getIgnoreYaw(MemorySegment)
- getIgnoreYaw(MemorySegment, int)
- getAnchor(MemorySegment)
- getAnchor(MemorySegment, int)
- getSizeAttribute(MemorySegment)
- getSizeAttribute(MemorySegment, int)
- hasSizeAttribute(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class StabSelector
java.lang.Object
com.hypixel.hytale.protocol.Selector
com.hypixel.hytale.protocol.StabSelector
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatfloatstatic final intbooleanbooleanstatic final intstatic final intfloatfloatfloatbooleanstatic final intstatic final intfloat -
Constructor Summary
ConstructorsConstructorDescriptionStabSelector(float extendTop, float extendBottom, float extendLeft, float extendRight, float yawOffset, float pitchOffset, float rollOffset, float startDistance, float endDistance, boolean testLineOfSight, boolean ignorePitch, boolean ignoreYaw, SelectorAnchor anchor, String sizeAttribute) StabSelector(StabSelector other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic SelectorAnchorgetAnchor(MemorySegment mem) static SelectorAnchorgetAnchor(MemorySegment mem, int offset) static floatstatic floatgetEndDistance(MemorySegment mem, int offset) static floatstatic floatgetExtendBottom(MemorySegment mem, int offset) static floatstatic floatgetExtendLeft(MemorySegment mem, int offset) static floatstatic floatgetExtendRight(MemorySegment mem, int offset) static floatstatic floatgetExtendTop(MemorySegment mem, int offset) static booleanstatic booleangetIgnorePitch(MemorySegment mem, int offset) static booleanstatic booleangetIgnoreYaw(MemorySegment mem, int offset) static floatstatic floatgetPitchOffset(MemorySegment mem, int offset) static floatstatic floatgetRollOffset(MemorySegment mem, int offset) static Stringstatic StringgetSizeAttribute(MemorySegment mem, int offset) static floatstatic floatgetStartDistance(MemorySegment mem, int offset) static booleanstatic booleangetTestLineOfSight(MemorySegment mem, int offset) static floatstatic floatgetYawOffset(MemorySegment mem, int offset) inthashCode()static booleanhasSizeAttribute(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static StabSelectortoObject(MemorySegment mem) static StabSelectortoObject(MemorySegment mem, int offset) static StabSelectortoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one StabSelector and reports the end of its encoding through the cursor.Methods inherited from class Selector
computeSizeWithTypeId, getTypeId, serializeWithTypeId
-
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:
-
extendTop
public float extendTop -
extendBottom
public float extendBottom -
extendLeft
public float extendLeft -
extendRight
public float extendRight -
yawOffset
public float yawOffset -
pitchOffset
public float pitchOffset -
rollOffset
public float rollOffset -
startDistance
public float startDistance -
endDistance
public float endDistance -
testLineOfSight
public boolean testLineOfSight -
ignorePitch
public boolean ignorePitch -
ignoreYaw
public boolean ignoreYaw -
anchor
-
sizeAttribute
-
-
Constructor Details
-
StabSelector
public StabSelector() -
StabSelector
public StabSelector(float extendTop, float extendBottom, float extendLeft, float extendRight, float yawOffset, float pitchOffset, float rollOffset, float startDistance, float endDistance, boolean testLineOfSight, boolean ignorePitch, boolean ignoreYaw, @Nonnull SelectorAnchor anchor, @Nullable String sizeAttribute) -
StabSelector
-
-
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. -
getExtendTop
-
getExtendTop
-
getExtendBottom
-
getExtendBottom
-
getExtendLeft
-
getExtendLeft
-
getExtendRight
-
getExtendRight
-
getYawOffset
-
getYawOffset
-
getPitchOffset
-
getPitchOffset
-
getRollOffset
-
getRollOffset
-
getStartDistance
-
getStartDistance
-
getEndDistance
-
getEndDistance
-
getTestLineOfSight
-
getTestLineOfSight
-
getIgnorePitch
-
getIgnorePitch
-
getIgnoreYaw
-
getIgnoreYaw
-
getAnchor
-
getAnchor
-
getSizeAttribute
-
getSizeAttribute
-
hasSizeAttribute
-
toObject
-
toObject
-
toObject
Decodes one StabSelector 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()- Specified by:
computeSizein classSelector
-
clone
-
equals
-
hashCode
-