Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getAllowRotationKey(MemorySegment)
- getAllowRotationKey(MemorySegment, int)
- getPlaceInEmptyBlocks(MemorySegment)
- getPlaceInEmptyBlocks(MemorySegment, int)
- getPreviewVisibility(MemorySegment)
- getPreviewVisibility(MemorySegment, int)
- getRotationMode(MemorySegment)
- getRotationMode(MemorySegment, int)
- getWallPlacementOverrideBlockId(MemorySegment)
- getWallPlacementOverrideBlockId(MemorySegment, int)
- getFloorPlacementOverrideBlockId(MemorySegment)
- getFloorPlacementOverrideBlockId(MemorySegment, int)
- getCeilingPlacementOverrideBlockId(MemorySegment)
- getCeilingPlacementOverrideBlockId(MemorySegment, int)
- getAllowBreakReplace(MemorySegment)
- getAllowBreakReplace(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class BlockPlacementSettings
java.lang.Object
com.hypixel.hytale.protocol.BlockPlacementSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanintstatic final intintstatic final intstatic final intbooleanstatic final intstatic final intint -
Constructor Summary
ConstructorsConstructorDescriptionBlockPlacementSettings(boolean allowRotationKey, boolean placeInEmptyBlocks, BlockPreviewVisibility previewVisibility, BlockPlacementRotationMode rotationMode, int wallPlacementOverrideBlockId, int floorPlacementOverrideBlockId, int ceilingPlacementOverrideBlockId, boolean allowBreakReplace) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleanstatic booleangetAllowBreakReplace(MemorySegment mem, int offset) static booleanstatic booleangetAllowRotationKey(MemorySegment mem, int offset) static intstatic intgetCeilingPlacementOverrideBlockId(MemorySegment mem, int offset) static intstatic intgetFloorPlacementOverrideBlockId(MemorySegment mem, int offset) static booleanstatic booleangetPlaceInEmptyBlocks(MemorySegment mem, int offset) static BlockPreviewVisibilitystatic BlockPreviewVisibilitygetPreviewVisibility(MemorySegment mem, int offset) static BlockPlacementRotationModestatic BlockPlacementRotationModegetRotationMode(MemorySegment mem, int offset) static intstatic intgetWallPlacementOverrideBlockId(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static BlockPlacementSettingstoObject(MemorySegment mem) static BlockPlacementSettingstoObject(MemorySegment mem, int offset) static BlockPlacementSettingstoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one BlockPlacementSettings 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:
-
allowRotationKey
public boolean allowRotationKey -
placeInEmptyBlocks
public boolean placeInEmptyBlocks -
previewVisibility
-
rotationMode
-
wallPlacementOverrideBlockId
public int wallPlacementOverrideBlockId -
floorPlacementOverrideBlockId
public int floorPlacementOverrideBlockId -
ceilingPlacementOverrideBlockId
public int ceilingPlacementOverrideBlockId -
allowBreakReplace
public boolean allowBreakReplace
-
-
Constructor Details
-
BlockPlacementSettings
public BlockPlacementSettings() -
BlockPlacementSettings
public BlockPlacementSettings(boolean allowRotationKey, boolean placeInEmptyBlocks, @Nonnull BlockPreviewVisibility previewVisibility, @Nonnull BlockPlacementRotationMode rotationMode, int wallPlacementOverrideBlockId, int floorPlacementOverrideBlockId, int ceilingPlacementOverrideBlockId, boolean allowBreakReplace) -
BlockPlacementSettings
-
-
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. -
getAllowRotationKey
-
getAllowRotationKey
-
getPlaceInEmptyBlocks
-
getPlaceInEmptyBlocks
-
getPreviewVisibility
-
getPreviewVisibility
-
getRotationMode
-
getRotationMode
-
getWallPlacementOverrideBlockId
-
getWallPlacementOverrideBlockId
-
getFloorPlacementOverrideBlockId
-
getFloorPlacementOverrideBlockId
-
getCeilingPlacementOverrideBlockId
-
getCeilingPlacementOverrideBlockId
-
getAllowBreakReplace
-
getAllowBreakReplace
-
toObject
-
toObject
-
toObject
public static BlockPlacementSettings toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one BlockPlacementSettings 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
-