Class FrozenShapes

java.lang.Object
net.frozenblock.lib.block.api.shape.FrozenShapes

public class FrozenShapes extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<net.minecraft.core.Direction,net.minecraft.world.phys.shapes.VoxelShape>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.VoxelShape
    makePlaneFromDirection(@NotNull net.minecraft.core.Direction direction, float fromSide)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)