Index

A B C D E F G I M N P R S T 
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
Implementation of IMultipartBlock Most cases do not need you to implement the interface, but to use this abstract class instead If you want to see an example implementation, check ExampleMultipartBlock
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.

B

build() - Method in class net.liukrast.multipart.block.AbstractMultipartBlock.Builder
Internal code.
Builder() - Constructor for class net.liukrast.multipart.block.AbstractMultipartBlock.Builder
Main constructor for Builder.

C

canSurvive(BlockState, LevelReader, BlockPos) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
 
canSurvive(BlockState, LevelReader, BlockPos) - Method in interface net.liukrast.multipart.block.IMultipartBlock
Boilerplate method to override BlockBehaviour.canSurvive(BlockState, LevelReader, BlockPos)
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
 
createBlockStateDefinition$multipart(StateDefinition.Builder<Block, BlockState>) - Method in interface net.liukrast.multipart.block.IMultipartBlock
Boilerplate method to create the blockstate definition.

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 interface net.liukrast.multipart.block.IMultipartBlock
Abstract method to define the relative positions of the block parts.
defineParts(AbstractMultipartBlock.Builder) - Method in class net.liukrast.multipart.example.ExampleFacingMultipartBlock
Deprecated.
Abstract method to define the relative positions of the block parts.
defineParts(AbstractMultipartBlock.Builder) - Method in class net.liukrast.multipart.example.ExampleMultipartBlock
Deprecated.
 
destroy(LevelAccessor, BlockPos, BlockState) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
 
destroy(LevelAccessor, BlockPos, BlockState) - Method in interface net.liukrast.multipart.block.IMultipartBlock
Boilerplate method to override Block.destroy(LevelAccessor, BlockPos, BlockState)

E

ExampleFacingMultipartBlock - Class in net.liukrast.multipart.example
Deprecated.
ExampleFacingMultipartBlock(BlockBehaviour.Properties) - Constructor for class net.liukrast.multipart.example.ExampleFacingMultipartBlock
Deprecated.
Constructs a new facing multipart block.
ExampleMultipartBlock - Class in net.liukrast.multipart.example
Deprecated.
ExampleMultipartBlock(BlockBehaviour.Properties) - Constructor for class net.liukrast.multipart.example.ExampleMultipartBlock
Deprecated.
Constructor for the block.

F

FACING - Static variable in class net.liukrast.multipart.block.AbstractFacingMultipartBlock
The horizontal facing direction property (NORTH, SOUTH, EAST, WEST).
facingMultipartBlock(BlockStateProvider, AbstractFacingMultipartBlock) - Static method in class net.liukrast.multipart.datagen.MultiPartAPIStateHelper
Generates blockstate for a facing multipart block.
forEachElement(BlockPos, BlockState, Consumer<BlockPos>) - Method in interface net.liukrast.multipart.block.IMultipartBlock
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 interface net.liukrast.multipart.block.IMultipartBlock
Returns the direction of the block.
getOrigin(BlockPos, BlockPos, Direction) - Method in interface net.liukrast.multipart.block.IMultipartBlock
Calculates the origin position of the multipart given a position and direction.
getPartsProperty() - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
 
getPartsProperty() - Method in interface net.liukrast.multipart.block.IMultipartBlock
Gives you the IntegerProperty of this precise multipart block
getPositions() - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
 
getPositions() - Method in interface net.liukrast.multipart.block.IMultipartBlock
It should not be used anywhere, only overwritten; If you're trying to access the size use IMultipartBlock.size()
getRelative(BlockPos, BlockPos, Direction) - Method in interface net.liukrast.multipart.block.IMultipartBlock
Calculates the relative position of a part from the origin.
getStateForPlacement(BlockPlaceContext) - Method in class net.liukrast.multipart.block.AbstractFacingMultipartBlock
 

I

IMultipartBlock - Interface in net.liukrast.multipart.block
Unimplemented version of AbstractMultipartBlock.

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.
MultiPartAPIStateHelper - Class in net.liukrast.multipart.datagen
Contains useful methods for data generation
MultiPartAPIStateHelper.PathProvider - Interface in net.liukrast.multipart.datagen
A simple interface used to provide the path where your file is stored based on state and id
multiPartBlock(BlockStateProvider, AbstractMultipartBlock) - Static method in class net.liukrast.multipart.datagen.MultiPartAPIStateHelper
Generates blockstate for a multipart block.
multiPartBlock(BlockStateProvider, AbstractMultipartBlock, MultiPartAPIStateHelper.PathProvider, BiConsumer<BlockState, ConfiguredModel.Builder<?>>) - Static method in class net.liukrast.multipart.datagen.MultiPartAPIStateHelper
Generates blockstate for a multipart block.

N

net.liukrast.multipart - package net.liukrast.multipart
 
net.liukrast.multipart.block - package net.liukrast.multipart.block
 
net.liukrast.multipart.datagen - package net.liukrast.multipart.datagen
 
net.liukrast.multipart.example - package net.liukrast.multipart.example
 
notify(BlockPos) - Static method in class net.liukrast.multipart.MultipartAPI
Requests to render a temporary red box around the given block position.

P

provide(BlockState, String) - Method in interface net.liukrast.multipart.datagen.MultiPartAPIStateHelper.PathProvider
The method for the functional interface.

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

setPartsProperty(IntegerProperty) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
 
setPartsProperty(IntegerProperty) - Method in interface net.liukrast.multipart.block.IMultipartBlock
Sets the property.
setPlacedBy(Level, BlockPos, BlockState, LivingEntity, ItemStack) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
 
setPlacedBy(Level, BlockPos, BlockState, LivingEntity, ItemStack) - Method in interface net.liukrast.multipart.block.IMultipartBlock
Boilerplate method to override Block.setPlacedBy(Level, BlockPos, BlockState, LivingEntity, ItemStack)
setPositions(List<BlockPos>) - Method in class net.liukrast.multipart.block.AbstractMultipartBlock
 
setPositions(List<BlockPos>) - Method in interface net.liukrast.multipart.block.IMultipartBlock
Internally sets the position list to your implemented code.
size() - Method in interface net.liukrast.multipart.block.IMultipartBlock
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.
A B C D E F G I M N P R S T 
All Classes and Interfaces|All Packages