Index
All Classes and Interfaces|All Packages
A
- AbstractFacingMultipartBlock - Class in net.liukrast.multipart.block
-
Abstract base class for multipart blocks with horizontal facing.
- AbstractFacingMultipartBlock(BlockBehaviour.Properties) - Constructor for class net.liukrast.multipart.block.AbstractFacingMultipartBlock
-
Constructs a new facing multipart block.
- AbstractMultipartBlock - Class in net.liukrast.multipart.block
-
Abstract class for multipart blocks composed of multiple parts positioned relative to each other.
- AbstractMultipartBlock(BlockBehaviour.Properties) - Constructor for class net.liukrast.multipart.block.AbstractMultipartBlock
-
Constructor for the block.
- AbstractMultipartBlock.Builder - Class in net.liukrast.multipart.block
-
Builder to define relative positions of multipart block parts.
C
- canSurvive(BlockState, LevelReader, BlockPos) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
- createBlockStateDefinition(StateDefinition.Builder<Block, BlockState>) - Method in class net.liukrast.multipart.block.AbstractFacingMultipartBlock
- createBlockStateDefinition(StateDefinition.Builder<Block, BlockState>) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
D
- define(int, int, int) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock.Builder
-
Defines a new relative position for a part.
- defineParts(AbstractMultipartBlock.Builder) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
-
Abstract method to define the relative positions of the block parts.
- destroy(LevelAccessor, BlockPos, BlockState) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
F
- FACING - Static variable in class net.liukrast.multipart.block.AbstractFacingMultipartBlock
-
The horizontal facing direction property (NORTH, SOUTH, EAST, WEST).
- forEachElement(BlockPos, BlockState, Consumer<BlockPos>) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
-
Performs an operation on every part of the multipart block.
G
- getDirection(BlockState) - Method in class net.liukrast.multipart.block.AbstractFacingMultipartBlock
-
Returns the horizontal-facing direction of the block.
- getDirection(BlockState) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
-
Returns the direction of the block.
- getOrigin(BlockPos, BlockPos, Direction) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
-
Calculates the origin position of the multipart given a position and direction.
- getPartsProperty() - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
-
Returns the integer property representing the part of the block.
- getRelative(BlockPos, BlockPos, Direction) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
-
Calculates the relative position of a part from the origin.
- getStateForPlacement(BlockPlaceContext) - Method in class net.liukrast.multipart.block.AbstractFacingMultipartBlock
M
- mirror(BlockState, Mirror) - Method in class net.liukrast.multipart.block.AbstractFacingMultipartBlock
- MultipartAPI - Class in net.liukrast.multipart
-
Utility class for handling temporary visualization of multipart block positions.
N
- net.liukrast.multipart - package net.liukrast.multipart
- net.liukrast.multipart.block - package net.liukrast.multipart.block
- notify(BlockPos) - Static method in class net.liukrast.multipart.MultipartAPI
-
Requests to render a temporary red box around the given block position.
R
- render(PoseStack) - Static method in class net.liukrast.multipart.MultipartAPI
-
Renders highlight boxes for all tracked block positions.
- rotate(BlockState, Rotation) - Method in class net.liukrast.multipart.block.AbstractFacingMultipartBlock
S
- setPlacedBy(Level, BlockPos, BlockState, LivingEntity, ItemStack) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
- size() - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
-
Returns the total number of parts composing the multipart block.
T
- tick() - Static method in class net.liukrast.multipart.MultipartAPI
-
Decrements the remaining duration for each highlight and removes expired entries.
All Classes and Interfaces|All Packages