Package org.moddingx.libx.block
Class DirectionShape
java.lang.Object
org.moddingx.libx.block.RotationShape
org.moddingx.libx.block.DirectionShape
Holds 6 different
VoxelShapes
, one for each facing. Those are all created by rotating
one original VoxelShape.-
Field Summary
Modifier and TypeFieldDescriptionprotected final net.minecraft.world.phys.shapes.VoxelShape
protected final net.minecraft.world.phys.shapes.VoxelShape
Fields inherited from class org.moddingx.libx.block.RotationShape
east, north, south, west
-
Constructor Summary
ConstructorDescriptionDirectionShape
(net.minecraft.world.phys.shapes.VoxelShape baseShape) Creates a new RotationShape with the given base shape. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.shapes.VoxelShape
getShape
(net.minecraft.core.Direction direction) Gets the VoxelShape for the given direction.
-
Field Details
-
up
protected final net.minecraft.world.phys.shapes.VoxelShape up -
down
protected final net.minecraft.world.phys.shapes.VoxelShape down
-
-
Constructor Details
-
DirectionShape
public DirectionShape(net.minecraft.world.phys.shapes.VoxelShape baseShape) Creates a new RotationShape with the given base shape. The base shape should be the shape facing up.
-
-
Method Details
-
getShape
public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.core.Direction direction) Description copied from class:RotationShape
Gets the VoxelShape for the given direction. If the direction is not a horizontal direction the base shape is returned.- Overrides:
getShape
in classRotationShape
-