Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getMinRadius(MemorySegment)
- getMinRadius(MemorySegment, int)
- getMaxRadius(MemorySegment)
- getMaxRadius(MemorySegment, int)
- getWidth(MemorySegment)
- getWidth(MemorySegment, int)
- getHeight(MemorySegment)
- getHeight(MemorySegment, int)
- getAngle(MemorySegment)
- getAngle(MemorySegment, int)
- getOffset(MemorySegment)
- getOffset(MemorySegment, int)
- getYawOffset(MemorySegment)
- getYawOffset(MemorySegment, int)
- hasOffset(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class DonutSelector
java.lang.Object
com.hypixel.hytale.protocol.Selector
com.hypixel.hytale.protocol.DonutSelector
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatstatic final intfloatstatic final intfloatfloatstatic final intorg.joml.Vector3fcstatic final intstatic final intfloatfloat -
Constructor Summary
ConstructorsConstructorDescriptionDonutSelector(float minRadius, float maxRadius, float width, float height, float angle, org.joml.Vector3fc offset, float yawOffset) DonutSelector(DonutSelector other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic floatgetAngle(MemorySegment mem) static floatgetAngle(MemorySegment mem, int offset) static floatgetHeight(MemorySegment mem) static floatgetHeight(MemorySegment mem, int offset) static floatstatic floatgetMaxRadius(MemorySegment mem, int offset) static floatstatic floatgetMinRadius(MemorySegment mem, int offset) static org.joml.Vector3fcgetOffset(MemorySegment mem) static org.joml.Vector3fcgetOffset(MemorySegment mem, int offset) static floatgetWidth(MemorySegment mem) static floatgetWidth(MemorySegment mem, int offset) static floatstatic floatgetYawOffset(MemorySegment mem, int offset) inthashCode()static booleanhasOffset(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static DonutSelectortoObject(MemorySegment mem) static DonutSelectortoObject(MemorySegment mem, int offset) static DonutSelectortoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one DonutSelector 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:
-
minRadius
public float minRadius -
maxRadius
public float maxRadius -
width
public float width -
height
public float height -
angle
public float angle -
offset
@Nullable public org.joml.Vector3fc offset -
yawOffset
public float yawOffset
-
-
Constructor Details
-
DonutSelector
public DonutSelector() -
DonutSelector
public DonutSelector(float minRadius, float maxRadius, float width, float height, float angle, @Nullable org.joml.Vector3fc offset, float yawOffset) -
DonutSelector
-
-
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. -
getMinRadius
-
getMinRadius
-
getMaxRadius
-
getMaxRadius
-
getWidth
-
getWidth
-
getHeight
-
getHeight
-
getAngle
-
getAngle
-
getOffset
-
getOffset
-
getYawOffset
-
getYawOffset
-
hasOffset
-
toObject
-
toObject
-
toObject
Decodes one DonutSelector 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
-