Enum Class BlockOrientation

java.lang.Object
java.lang.Enum<BlockOrientation>
appeng.api.orientation.BlockOrientation
All Implemented Interfaces:
Serializable, Comparable<BlockOrientation>, Constable

public enum BlockOrientation extends Enum<BlockOrientation>
All possible rotations for a fully orientable block.
  • Enum Constant Details

  • Method Details

    • values

      public static BlockOrientation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BlockOrientation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • setOn

      public void setOn(net.minecraft.world.level.block.entity.BlockEntity be)
      Changes the orientation of the given block entity to this, if possible.
    • setOn

      public void setOn(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Changes the orientation of the block at the given position/level to this, if possible.
    • isRedundant

      public boolean isRedundant()
    • getQuaternion

      public org.joml.Quaternionf getQuaternion()
    • getTransformation

      public com.mojang.math.Transformation getTransformation()
    • rotate

      public net.minecraft.core.Direction rotate(net.minecraft.core.Direction facing)
    • resultingRotate

      public net.minecraft.core.Direction resultingRotate(net.minecraft.core.Direction facing)
    • getAngleX

      public int getAngleX()
    • getAngleY

      public int getAngleY()
    • getAngleZ

      public int getAngleZ()
    • getSpin

      public int getSpin()
    • get

      public static BlockOrientation get(net.minecraft.core.Direction facing)
    • get

      public static BlockOrientation get(net.minecraft.core.Direction front, net.minecraft.core.Direction top)
      Gets the block orientation in which the blocks front and top are facing the specified directions.
    • get

      public static BlockOrientation get(net.minecraft.core.Direction facing, int spin)
    • get

      public static BlockOrientation get(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
    • get

      public static BlockOrientation get(net.minecraft.world.level.block.state.BlockState state)
    • get

      public static BlockOrientation get(IOrientationStrategy strategy, net.minecraft.world.level.block.state.BlockState state)
    • getSide

      public net.minecraft.core.Direction getSide(RelativeSide side)
    • getRelativeSide

      public RelativeSide getRelativeSide(net.minecraft.core.Direction side)
    • getSides

      public Set<net.minecraft.core.Direction> getSides(Set<RelativeSide> relativeSides)
    • getRelativeSides

      public Set<RelativeSide> getRelativeSides(Set<net.minecraft.core.Direction> sides)
    • rotateClockwiseAround

      public BlockOrientation rotateClockwiseAround(net.minecraft.core.Direction side)
    • rotateClockwiseAround

      public BlockOrientation rotateClockwiseAround(net.minecraft.core.Direction.Axis axis, net.minecraft.core.Direction.AxisDirection direction)