Class VoxelShapeRotator

java.lang.Object
team.lodestar.lodestone.modules.toolkit.block.VoxelShapeRotator

public class VoxelShapeRotator extends Object
  • Field Summary

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

    Constructors
    Constructor
    Description
    VoxelShapeRotator(net.minecraft.world.phys.shapes.VoxelShape baseShape)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.block.state.properties.DirectionProperty
    getDirectionProperty(net.minecraft.world.level.block.Block block)
     
    Collection<net.minecraft.core.Direction>
    getPossibleDirections(net.minecraft.world.level.block.Block block)
     
    net.minecraft.world.phys.shapes.VoxelShape
    getShape(net.minecraft.world.level.block.state.BlockState state)
     
    static net.minecraft.world.phys.shapes.VoxelShape
    rotateShape(net.minecraft.core.Direction direction, net.minecraft.world.phys.shapes.VoxelShape baseShape)
     

    Methods inherited from class java.lang.Object

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

    • variants

      protected final HashMap<net.minecraft.core.Direction,net.minecraft.world.phys.shapes.VoxelShape> variants
  • Constructor Details

    • VoxelShapeRotator

      public VoxelShapeRotator(net.minecraft.world.phys.shapes.VoxelShape baseShape)
  • Method Details

    • getShape

      public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState state)
    • getPossibleDirections

      public Collection<net.minecraft.core.Direction> getPossibleDirections(net.minecraft.world.level.block.Block block)
    • getDirectionProperty

      public net.minecraft.world.level.block.state.properties.DirectionProperty getDirectionProperty(net.minecraft.world.level.block.Block block)
    • rotateShape

      public static net.minecraft.world.phys.shapes.VoxelShape rotateShape(net.minecraft.core.Direction direction, net.minecraft.world.phys.shapes.VoxelShape baseShape)