Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getOffset(MemorySegment)
- getOffset(MemorySegment, int)
- getDistance(MemorySegment)
- getDistance(MemorySegment, int)
- getBlockTagIndex(MemorySegment)
- getBlockTagIndex(MemorySegment, int)
- getIgnoreFluids(MemorySegment)
- getIgnoreFluids(MemorySegment, int)
- getIgnoreEmptyCollisionMaterial(MemorySegment)
- getIgnoreEmptyCollisionMaterial(MemorySegment, int)
- getDistanceAttribute(MemorySegment)
- getDistanceAttribute(MemorySegment, int)
- hasOffset(MemorySegment, int)
- hasDistanceAttribute(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class RaycastSelector
java.lang.Object
com.hypixel.hytale.protocol.Selector
com.hypixel.hytale.protocol.RaycastSelector
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintstatic final intbooleanbooleanstatic final intstatic final intorg.joml.Vector3fcstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRaycastSelector(RaycastSelector other) RaycastSelector(org.joml.Vector3fc offset, int distance, int blockTagIndex, boolean ignoreFluids, boolean ignoreEmptyCollisionMaterial, String distanceAttribute) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic intstatic intgetBlockTagIndex(MemorySegment mem, int offset) static intgetDistance(MemorySegment mem) static intgetDistance(MemorySegment mem, int offset) static Stringstatic StringgetDistanceAttribute(MemorySegment mem, int offset) static booleanstatic booleangetIgnoreEmptyCollisionMaterial(MemorySegment mem, int offset) static booleanstatic booleangetIgnoreFluids(MemorySegment mem, int offset) static org.joml.Vector3fcgetOffset(MemorySegment mem) static org.joml.Vector3fcgetOffset(MemorySegment mem, int offset) static booleanhasDistanceAttribute(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 RaycastSelectortoObject(MemorySegment mem) static RaycastSelectortoObject(MemorySegment mem, int offset) static RaycastSelectortoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one RaycastSelector 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:
-
offset
@Nullable public org.joml.Vector3fc offset -
distance
public int distance -
blockTagIndex
public int blockTagIndex -
ignoreFluids
public boolean ignoreFluids -
ignoreEmptyCollisionMaterial
public boolean ignoreEmptyCollisionMaterial -
distanceAttribute
-
-
Constructor Details
-
RaycastSelector
public RaycastSelector() -
RaycastSelector
public RaycastSelector(@Nullable org.joml.Vector3fc offset, int distance, int blockTagIndex, boolean ignoreFluids, boolean ignoreEmptyCollisionMaterial, @Nullable String distanceAttribute) -
RaycastSelector
-
-
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. -
getOffset
-
getOffset
-
getDistance
-
getDistance
-
getBlockTagIndex
-
getBlockTagIndex
-
getIgnoreFluids
-
getIgnoreFluids
-
getIgnoreEmptyCollisionMaterial
-
getIgnoreEmptyCollisionMaterial
-
getDistanceAttribute
-
getDistanceAttribute
-
hasOffset
-
hasDistanceAttribute
-
toObject
-
toObject
-
toObject
Decodes one RaycastSelector 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
-