Class VoxelShaper

java.lang.Object
com.simibubi.create.foundation.utility.VoxelShaper
Direct Known Subclasses:
GaugeShaper

public class VoxelShaper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     
    protected static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.core.Direction
    axisAsFace(net.minecraft.core.Direction.Axis axis)
     
    protected static net.minecraft.world.phys.shapes.VoxelShape
    blockBox(net.minecraft.world.phys.Vec3 v1, net.minecraft.world.phys.Vec3 v2)
     
    forAxis(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction.Axis along)
     
    forDirectional(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction facing)
     
    protected static VoxelShaper
    forDirectionsWithRotation(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction facing, Iterable<net.minecraft.core.Direction> directions, Function<net.minecraft.core.Direction,net.minecraft.world.phys.Vec3> rotationValues)
     
    forHorizontal(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction facing)
     
    forHorizontalAxis(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction.Axis along)
     
    net.minecraft.world.phys.shapes.VoxelShape
    get(net.minecraft.core.Direction direction)
     
    net.minecraft.world.phys.shapes.VoxelShape
    get(net.minecraft.core.Direction.Axis axis)
     
    protected static float
    horizontalAngleFromDirection(net.minecraft.core.Direction direction)
     
    protected static net.minecraft.world.phys.shapes.VoxelShape
    rotate(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction from, net.minecraft.core.Direction to, Function<net.minecraft.core.Direction,net.minecraft.world.phys.Vec3> usingValues)
     
    protected static net.minecraft.world.phys.shapes.VoxelShape
    rotatedCopy(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.world.phys.Vec3 rotation)
     
    withShape(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction facing)
     
    withVerticalShapes(net.minecraft.world.phys.shapes.VoxelShape upShape)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VoxelShaper

      public VoxelShaper()
  • Method Details

    • get

      public net.minecraft.world.phys.shapes.VoxelShape get(net.minecraft.core.Direction direction)
    • get

      public net.minecraft.world.phys.shapes.VoxelShape get(net.minecraft.core.Direction.Axis axis)
    • forHorizontal

      public static VoxelShaper forHorizontal(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction facing)
    • forHorizontalAxis

      public static VoxelShaper forHorizontalAxis(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction.Axis along)
    • forDirectional

      public static VoxelShaper forDirectional(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction facing)
    • forAxis

      public static VoxelShaper forAxis(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction.Axis along)
    • withVerticalShapes

      public VoxelShaper withVerticalShapes(net.minecraft.world.phys.shapes.VoxelShape upShape)
    • withShape

      public VoxelShaper withShape(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction facing)
    • axisAsFace

      public static net.minecraft.core.Direction axisAsFace(net.minecraft.core.Direction.Axis axis)
    • horizontalAngleFromDirection

      protected static float horizontalAngleFromDirection(net.minecraft.core.Direction direction)
    • forDirectionsWithRotation

      protected static VoxelShaper forDirectionsWithRotation(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction facing, Iterable<net.minecraft.core.Direction> directions, Function<net.minecraft.core.Direction,net.minecraft.world.phys.Vec3> rotationValues)
    • rotate

      protected static net.minecraft.world.phys.shapes.VoxelShape rotate(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.core.Direction from, net.minecraft.core.Direction to, Function<net.minecraft.core.Direction,net.minecraft.world.phys.Vec3> usingValues)
    • rotatedCopy

      protected static net.minecraft.world.phys.shapes.VoxelShape rotatedCopy(net.minecraft.world.phys.shapes.VoxelShape shape, net.minecraft.world.phys.Vec3 rotation)
    • blockBox

      protected static net.minecraft.world.phys.shapes.VoxelShape blockBox(net.minecraft.world.phys.Vec3 v1, net.minecraft.world.phys.Vec3 v2)