Class DirectionShape

java.lang.Object
org.moddingx.libx.block.RotationShape
org.moddingx.libx.block.DirectionShape

public class DirectionShape extends RotationShape
Holds 6 different VoxelShapes, one for each facing. Those are all created by rotating one original VoxelShape.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected 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

    Constructors
    Constructor
    Description
    DirectionShape(net.minecraft.world.phys.shapes.VoxelShape baseShape)
    Creates a new RotationShape with the given base shape.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.phys.shapes.VoxelShape
    getShape(net.minecraft.core.Direction direction)
    Gets the VoxelShape for the given direction.

    Methods inherited from class java.lang.Object

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