Class VoxelShapeRotator
java.lang.Object
team.lodestar.lodestone.modules.toolkit.block.VoxelShapeRotator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.properties.DirectionPropertygetDirectionProperty(net.minecraft.world.level.block.Block block) Collection<net.minecraft.core.Direction> getPossibleDirections(net.minecraft.world.level.block.Block block) net.minecraft.world.phys.shapes.VoxelShapegetShape(net.minecraft.world.level.block.state.BlockState state) static net.minecraft.world.phys.shapes.VoxelShaperotateShape(net.minecraft.core.Direction direction, net.minecraft.world.phys.shapes.VoxelShape baseShape)
-
Field Details
-
variants
protected final HashMap<net.minecraft.core.Direction,net.minecraft.world.phys.shapes.VoxelShape> variants
-
-
Constructor Details
-
VoxelShapeRotator
public VoxelShapeRotator(net.minecraft.world.phys.shapes.VoxelShape baseShape)
-
-
Method Details
-
getShape
public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState state) -
getPossibleDirections
public Collection<net.minecraft.core.Direction> getPossibleDirections(net.minecraft.world.level.block.Block block) -
getDirectionProperty
public net.minecraft.world.level.block.state.properties.DirectionProperty getDirectionProperty(net.minecraft.world.level.block.Block block) -
rotateShape
public static net.minecraft.world.phys.shapes.VoxelShape rotateShape(net.minecraft.core.Direction direction, net.minecraft.world.phys.shapes.VoxelShape baseShape)
-