Package net.minecraft.util
Enum BlockRotation
- All Implemented Interfaces:
Serializable
,Comparable<BlockRotation>
,java.lang.constant.Constable
public enum BlockRotation extends Enum<BlockRotation>
- Mappings:
Namespace Name official ccm
intermediary net/minecraft/class_2470
named net/minecraft/util/BlockRotation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOCKWISE_180
CLOCKWISE_90
COUNTERCLOCKWISE_90
NONE
-
Field Summary
Fields Modifier and Type Field Description private DirectionTransformation
directionTransformation
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockRotation(DirectionTransformation directionTransformation)
-
Method Summary
Modifier and Type Method Description DirectionTransformation
getDirectionTransformation()
static BlockRotation
random(Random random)
static List<BlockRotation>
randomRotationOrder(Random random)
int
rotate(int rotation, int fullTurn)
BlockRotation
rotate(BlockRotation rotation)
Direction
rotate(Direction direction)
static BlockRotation
valueOf(String name)
Returns the enum constant of this type with the specified name.static BlockRotation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
- Mappings:
Namespace Name Mixin selector official a
Lccm;a:Lccm;
intermediary field_11467
Lnet/minecraft/class_2470;field_11467:Lnet/minecraft/class_2470;
named NONE
Lnet/minecraft/util/BlockRotation;NONE:Lnet/minecraft/util/BlockRotation;
-
CLOCKWISE_90
- Mappings:
Namespace Name Mixin selector official b
Lccm;b:Lccm;
intermediary field_11463
Lnet/minecraft/class_2470;field_11463:Lnet/minecraft/class_2470;
named CLOCKWISE_90
Lnet/minecraft/util/BlockRotation;CLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
-
CLOCKWISE_180
- Mappings:
Namespace Name Mixin selector official c
Lccm;c:Lccm;
intermediary field_11464
Lnet/minecraft/class_2470;field_11464:Lnet/minecraft/class_2470;
named CLOCKWISE_180
Lnet/minecraft/util/BlockRotation;CLOCKWISE_180:Lnet/minecraft/util/BlockRotation;
-
COUNTERCLOCKWISE_90
- Mappings:
Namespace Name Mixin selector official d
Lccm;d:Lccm;
intermediary field_11465
Lnet/minecraft/class_2470;field_11465:Lnet/minecraft/class_2470;
named COUNTERCLOCKWISE_90
Lnet/minecraft/util/BlockRotation;COUNTERCLOCKWISE_90:Lnet/minecraft/util/BlockRotation;
-
-
Field Details
-
directionTransformation
- Mappings:
Namespace Name Mixin selector official e
Lccm;e:Lc;
intermediary field_23264
Lnet/minecraft/class_2470;field_23264:Lnet/minecraft/class_4990;
named directionTransformation
Lnet/minecraft/util/BlockRotation;directionTransformation:Lnet/minecraft/util/math/DirectionTransformation;
-
-
Constructor Details
-
BlockRotation
- Mappings:
Namespace Name Mixin selector official <init>
Lccm;<init>(Ljava/lang/String;ILc;)V
intermediary <init>
Lnet/minecraft/class_2470;<init>(Ljava/lang/String;ILnet/minecraft/class_4990;)V
named <init>
Lnet/minecraft/util/BlockRotation;<init>(Ljava/lang/String;ILnet/minecraft/util/math/DirectionTransformation;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
rotate
- Mappings:
Namespace Name Mixin selector official a
Lccm;a(Lccm;)Lccm;
intermediary method_10501
Lnet/minecraft/class_2470;method_10501(Lnet/minecraft/class_2470;)Lnet/minecraft/class_2470;
named rotate
Lnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/BlockRotation;
-
getDirectionTransformation
- Mappings:
Namespace Name Mixin selector official a
Lccm;a()Lc;
intermediary method_26383
Lnet/minecraft/class_2470;method_26383()Lnet/minecraft/class_4990;
named getDirectionTransformation
Lnet/minecraft/util/BlockRotation;getDirectionTransformation()Lnet/minecraft/util/math/DirectionTransformation;
-
rotate
- Mappings:
Namespace Name Mixin selector official a
Lccm;a(Lgc;)Lgc;
intermediary method_10503
Lnet/minecraft/class_2470;method_10503(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2350;
named rotate
Lnet/minecraft/util/BlockRotation;rotate(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/Direction;
-
rotate
public int rotate(int rotation, int fullTurn)- Mappings:
Namespace Name Mixin selector official a
Lccm;a(II)I
intermediary method_10502
Lnet/minecraft/class_2470;method_10502(II)I
named rotate
Lnet/minecraft/util/BlockRotation;rotate(II)I
-
random
- Mappings:
Namespace Name Mixin selector official a
Lccm;a(Ljava/util/Random;)Lccm;
intermediary method_16548
Lnet/minecraft/class_2470;method_16548(Ljava/util/Random;)Lnet/minecraft/class_2470;
named random
Lnet/minecraft/util/BlockRotation;random(Ljava/util/Random;)Lnet/minecraft/util/BlockRotation;
-
randomRotationOrder
- Mappings:
Namespace Name Mixin selector official b
Lccm;b(Ljava/util/Random;)Ljava/util/List;
intermediary method_16547
Lnet/minecraft/class_2470;method_16547(Ljava/util/Random;)Ljava/util/List;
named randomRotationOrder
Lnet/minecraft/util/BlockRotation;randomRotationOrder(Ljava/util/Random;)Ljava/util/List;
-