Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getRules(MemorySegment)
- getRules(MemorySegment, int)
- getShapeType(MemorySegment)
- getShapeType(MemorySegment, int)
- getPosition(MemorySegment)
- getPosition(MemorySegment, int)
- getDimensions(MemorySegment)
- getDimensions(MemorySegment, int)
- getRotation(MemorySegment)
- getRotation(MemorySegment, int)
- getBuildExceptBlocks(MemorySegment)
- getBuildExceptBlocks(MemorySegment, int)
- getDestroyExceptBlocks(MemorySegment)
- getDestroyExceptBlocks(MemorySegment, int)
- getDestroyExceptTools(MemorySegment)
- getDestroyExceptTools(MemorySegment, int)
- getHarvestExceptBlocks(MemorySegment)
- getHarvestExceptBlocks(MemorySegment, int)
- hasBuildExceptBlocks(MemorySegment, int)
- hasDestroyExceptBlocks(MemorySegment, int)
- hasDestroyExceptTools(MemorySegment, int)
- hasHarvestExceptBlocks(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ClientRuleVolume
java.lang.Object
com.hypixel.hytale.protocol.packets.player.ClientRuleVolume
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]int[]String[]org.joml.Vector3fcstatic final intint[]static final intstatic final intorg.joml.Vector3fcorg.joml.Vector3fcbytestatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionClientRuleVolume(byte rules, TriggerVolumeShapeType shapeType, org.joml.Vector3fc position, org.joml.Vector3fc dimensions, org.joml.Vector3fc rotation, int[] buildExceptBlocks, int[] destroyExceptBlocks, String[] destroyExceptTools, int[] harvestExceptBlocks) ClientRuleVolume(ClientRuleVolume other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic int[]static int[]getBuildExceptBlocks(MemorySegment mem, int offset) static int[]static int[]getDestroyExceptBlocks(MemorySegment mem, int offset) static String[]static String[]getDestroyExceptTools(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetDimensions(MemorySegment mem, int offset) static int[]static int[]getHarvestExceptBlocks(MemorySegment mem, int offset) static org.joml.Vector3fcgetPosition(MemorySegment mem) static org.joml.Vector3fcgetPosition(MemorySegment mem, int offset) static org.joml.Vector3fcgetRotation(MemorySegment mem) static org.joml.Vector3fcgetRotation(MemorySegment mem, int offset) static bytegetRules(MemorySegment mem) static bytegetRules(MemorySegment mem, int offset) static TriggerVolumeShapeTypestatic TriggerVolumeShapeTypegetShapeType(MemorySegment mem, int offset) static booleanhasBuildExceptBlocks(MemorySegment mem, int offset) static booleanhasDestroyExceptBlocks(MemorySegment mem, int offset) static booleanhasDestroyExceptTools(MemorySegment mem, int offset) static booleanhasHarvestExceptBlocks(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ClientRuleVolumetoObject(MemorySegment mem) static ClientRuleVolumetoObject(MemorySegment mem, int offset) static ClientRuleVolumetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ClientRuleVolume 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:
-
rules
public byte rules -
shapeType
-
position
@Nonnull public org.joml.Vector3fc position -
dimensions
@Nonnull public org.joml.Vector3fc dimensions -
rotation
@Nonnull public org.joml.Vector3fc rotation -
buildExceptBlocks
@Nullable public int[] buildExceptBlocks -
destroyExceptBlocks
@Nullable public int[] destroyExceptBlocks -
destroyExceptTools
-
harvestExceptBlocks
@Nullable public int[] harvestExceptBlocks
-
-
Constructor Details
-
ClientRuleVolume
public ClientRuleVolume() -
ClientRuleVolume
public ClientRuleVolume(byte rules, @Nonnull TriggerVolumeShapeType shapeType, @Nonnull org.joml.Vector3fc position, @Nonnull org.joml.Vector3fc dimensions, @Nonnull org.joml.Vector3fc rotation, @Nullable int[] buildExceptBlocks, @Nullable int[] destroyExceptBlocks, @Nullable String[] destroyExceptTools, @Nullable int[] harvestExceptBlocks) -
ClientRuleVolume
-
-
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. -
getRules
-
getRules
-
getShapeType
-
getShapeType
-
getPosition
-
getPosition
-
getDimensions
-
getDimensions
-
getRotation
-
getRotation
-
getBuildExceptBlocks
-
getBuildExceptBlocks
-
getDestroyExceptBlocks
-
getDestroyExceptBlocks
-
getDestroyExceptTools
-
getDestroyExceptTools
-
getHarvestExceptBlocks
-
getHarvestExceptBlocks
-
hasBuildExceptBlocks
-
hasDestroyExceptBlocks
-
hasDestroyExceptTools
-
hasHarvestExceptBlocks
-
toObject
-
toObject
-
toObject
Decodes one ClientRuleVolume 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
-