Class FrozenShapes
java.lang.Object
net.frozenblock.lib.block.api.shape.FrozenShapes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<net.minecraft.core.Direction,net.minecraft.world.phys.shapes.VoxelShape> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<net.minecraft.world.phys.Vec3>closestPointTo(net.minecraft.core.BlockPos originalPos, @NotNull net.minecraft.world.phys.shapes.VoxelShape blockShape, net.minecraft.world.phys.Vec3 point) static @NotNull net.minecraft.world.phys.shapes.VoxelShapemakePlaneFromDirection(@NotNull net.minecraft.core.Direction direction, float fromSide)
-
Field Details
-
PLANE_BY_DIRECTION
public static final Map<net.minecraft.core.Direction,net.minecraft.world.phys.shapes.VoxelShape> PLANE_BY_DIRECTION
-
-
Constructor Details
-
FrozenShapes
public FrozenShapes()
-
-
Method Details
-
makePlaneFromDirection
@NotNull public static @NotNull net.minecraft.world.phys.shapes.VoxelShape makePlaneFromDirection(@NotNull @NotNull net.minecraft.core.Direction direction, float fromSide) -
closestPointTo
public static Optional<net.minecraft.world.phys.Vec3> closestPointTo(net.minecraft.core.BlockPos originalPos, @NotNull @NotNull net.minecraft.world.phys.shapes.VoxelShape blockShape, net.minecraft.world.phys.Vec3 point)
-