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)
- getYawLength(MemorySegment)
- getYawLength(MemorySegment, int)
- getYawStartOffset(MemorySegment)
- getYawStartOffset(MemorySegment, int)
- getPitchOffset(MemorySegment)
- getPitchOffset(MemorySegment, int)
- getRollOffset(MemorySegment)
- getRollOffset(MemorySegment, int)
- getStartDistance(MemorySegment)
- getStartDistance(MemorySegment, int)
- getEndDistance(MemorySegment)
- getEndDistance(MemorySegment, int)
- getDirection(MemorySegment)
- getDirection(MemorySegment, int)
- getTestLineOfSight(MemorySegment)
- getTestLineOfSight(MemorySegment, int)
- getIgnorePitch(MemorySegment)
- getIgnorePitch(MemorySegment, int)
- getIgnoreYaw(MemorySegment)
- getIgnoreYaw(MemorySegment, int)
- getAnchor(MemorySegment)
- getAnchor(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class HorizontalSelector
java.lang.Object
com.hypixel.hytale.protocol.Selector
com.hypixel.hytale.protocol.HorizontalSelector
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatstatic final intbooleanbooleanstatic final intstatic final intfloatfloatfloatbooleanstatic final intstatic final intfloatfloat -
Constructor Summary
ConstructorsConstructorDescriptionHorizontalSelector(float extendTop, float extendBottom, float yawLength, float yawStartOffset, float pitchOffset, float rollOffset, float startDistance, float endDistance, HorizontalSelectorDirection direction, boolean testLineOfSight, boolean ignorePitch, boolean ignoreYaw, SelectorAnchor anchor) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic SelectorAnchorgetAnchor(MemorySegment mem) static SelectorAnchorgetAnchor(MemorySegment mem, int offset) static HorizontalSelectorDirectionstatic HorizontalSelectorDirectiongetDirection(MemorySegment mem, int offset) static floatstatic floatgetEndDistance(MemorySegment mem, int offset) static floatstatic floatgetExtendBottom(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 floatstatic floatgetStartDistance(MemorySegment mem, int offset) static booleanstatic booleangetTestLineOfSight(MemorySegment mem, int offset) static floatstatic floatgetYawLength(MemorySegment mem, int offset) static floatstatic floatgetYawStartOffset(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static HorizontalSelectortoObject(MemorySegment mem) static HorizontalSelectortoObject(MemorySegment mem, int offset) static HorizontalSelectortoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one HorizontalSelector 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 -
yawLength
public float yawLength -
yawStartOffset
public float yawStartOffset -
pitchOffset
public float pitchOffset -
rollOffset
public float rollOffset -
startDistance
public float startDistance -
endDistance
public float endDistance -
direction
-
testLineOfSight
public boolean testLineOfSight -
ignorePitch
public boolean ignorePitch -
ignoreYaw
public boolean ignoreYaw -
anchor
-
-
Constructor Details
-
HorizontalSelector
public HorizontalSelector() -
HorizontalSelector
public HorizontalSelector(float extendTop, float extendBottom, float yawLength, float yawStartOffset, float pitchOffset, float rollOffset, float startDistance, float endDistance, @Nonnull HorizontalSelectorDirection direction, boolean testLineOfSight, boolean ignorePitch, boolean ignoreYaw, @Nonnull SelectorAnchor anchor) -
HorizontalSelector
-
-
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
-
getYawLength
-
getYawLength
-
getYawStartOffset
-
getYawStartOffset
-
getPitchOffset
-
getPitchOffset
-
getRollOffset
-
getRollOffset
-
getStartDistance
-
getStartDistance
-
getEndDistance
-
getEndDistance
-
getDirection
-
getDirection
-
getTestLineOfSight
-
getTestLineOfSight
-
getIgnorePitch
-
getIgnorePitch
-
getIgnoreYaw
-
getIgnoreYaw
-
getAnchor
-
getAnchor
-
toObject
-
toObject
-
toObject
public static HorizontalSelector toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one HorizontalSelector 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
-