Package net.minecraft.block
Enum LeverBlock.LeverType
- All Implemented Interfaces:
Serializable,Comparable<LeverBlock.LeverType>,java.lang.constant.Constable,StringIdentifiable
- Enclosing class:
- LeverBlock
public static enum LeverBlock.LeverType extends Enum<LeverBlock.LeverType> implements StringIdentifiable
- Mappings:
Namespace Name official ahu$aintermediary net/minecraft/class_241$class_242named net/minecraft/block/LeverBlock$LeverType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description StringasString()static LeverBlock.LeverTypegetByDirection(Direction dir1, Direction dir2)static LeverBlock.LeverTypegetById(int id)DirectiongetDirection()intgetId()StringtoString()static LeverBlock.LeverTypevalueOf(String name)Returns the enum constant of this type with the specified name.static LeverBlock.LeverType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DOWN_X
- Mappings:
Namespace Name Mixin selector official aLahu$a;a:Lahu$a;intermediary field_1018Lnet/minecraft/class_241$class_242;field_1018:Lnet/minecraft/class_241$class_242;named DOWN_XLnet/minecraft/block/LeverBlock$LeverType;DOWN_X:Lnet/minecraft/block/LeverBlock$LeverType;
-
EAST
- Mappings:
Namespace Name Mixin selector official bLahu$a;b:Lahu$a;intermediary field_1019Lnet/minecraft/class_241$class_242;field_1019:Lnet/minecraft/class_241$class_242;named EASTLnet/minecraft/block/LeverBlock$LeverType;EAST:Lnet/minecraft/block/LeverBlock$LeverType;
-
WEST
- Mappings:
Namespace Name Mixin selector official cLahu$a;c:Lahu$a;intermediary field_1020Lnet/minecraft/class_241$class_242;field_1020:Lnet/minecraft/class_241$class_242;named WESTLnet/minecraft/block/LeverBlock$LeverType;WEST:Lnet/minecraft/block/LeverBlock$LeverType;
-
SOUTH
- Mappings:
Namespace Name Mixin selector official dLahu$a;d:Lahu$a;intermediary field_1021Lnet/minecraft/class_241$class_242;field_1021:Lnet/minecraft/class_241$class_242;named SOUTHLnet/minecraft/block/LeverBlock$LeverType;SOUTH:Lnet/minecraft/block/LeverBlock$LeverType;
-
NORTH
- Mappings:
Namespace Name Mixin selector official eLahu$a;e:Lahu$a;intermediary field_1022Lnet/minecraft/class_241$class_242;field_1022:Lnet/minecraft/class_241$class_242;named NORTHLnet/minecraft/block/LeverBlock$LeverType;NORTH:Lnet/minecraft/block/LeverBlock$LeverType;
-
UP_Z
- Mappings:
Namespace Name Mixin selector official fLahu$a;f:Lahu$a;intermediary field_1023Lnet/minecraft/class_241$class_242;field_1023:Lnet/minecraft/class_241$class_242;named UP_ZLnet/minecraft/block/LeverBlock$LeverType;UP_Z:Lnet/minecraft/block/LeverBlock$LeverType;
-
UP_X
- Mappings:
Namespace Name Mixin selector official gLahu$a;g:Lahu$a;intermediary field_1024Lnet/minecraft/class_241$class_242;field_1024:Lnet/minecraft/class_241$class_242;named UP_XLnet/minecraft/block/LeverBlock$LeverType;UP_X:Lnet/minecraft/block/LeverBlock$LeverType;
-
DOWN_Z
- Mappings:
Namespace Name Mixin selector official hLahu$a;h:Lahu$a;intermediary field_1025Lnet/minecraft/class_241$class_242;field_1025:Lnet/minecraft/class_241$class_242;named DOWN_ZLnet/minecraft/block/LeverBlock$LeverType;DOWN_Z:Lnet/minecraft/block/LeverBlock$LeverType;
-
-
Field Details
-
TYPES
- Mappings:
Namespace Name Mixin selector official iLahu$a;i:[Lahu$a;intermediary field_1026Lnet/minecraft/class_241$class_242;field_1026:[Lnet/minecraft/class_241$class_242;named TYPESLnet/minecraft/block/LeverBlock$LeverType;TYPES:[Lnet/minecraft/block/LeverBlock$LeverType;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official jLahu$a;j:Iintermediary field_1027Lnet/minecraft/class_241$class_242;field_1027:Inamed idLnet/minecraft/block/LeverBlock$LeverType;id:I
-
name
- Mappings:
Namespace Name Mixin selector official kLahu$a;k:Ljava/lang/String;intermediary field_1028Lnet/minecraft/class_241$class_242;field_1028:Ljava/lang/String;named nameLnet/minecraft/block/LeverBlock$LeverType;name:Ljava/lang/String;
-
direction
- Mappings:
Namespace Name Mixin selector official lLahu$a;l:Lcq;intermediary field_1029Lnet/minecraft/class_241$class_242;field_1029:Lnet/minecraft/class_1383;named directionLnet/minecraft/block/LeverBlock$LeverType;direction:Lnet/minecraft/util/math/Direction;
-
-
Constructor Details
-
LeverType
- Mappings:
Namespace Name Mixin selector official <init>Lahu$a;<init>(Ljava/lang/String;IILjava/lang/String;Lcq;)Vintermediary <init>Lnet/minecraft/class_241$class_242;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_1383;)Vnamed <init>Lnet/minecraft/block/LeverBlock$LeverType;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/util/math/Direction;)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
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLahu$a;a()Iintermediary method_898Lnet/minecraft/class_241$class_242;method_898()Inamed getIdLnet/minecraft/block/LeverBlock$LeverType;getId()I
-
getDirection
- Mappings:
Namespace Name Mixin selector official cLahu$a;c()Lcq;intermediary method_901Lnet/minecraft/class_241$class_242;method_901()Lnet/minecraft/class_1383;named getDirectionLnet/minecraft/block/LeverBlock$LeverType;getDirection()Lnet/minecraft/util/math/Direction;
-
toString
- Overrides:
toStringin classEnum<LeverBlock.LeverType>- Mappings:
Namespace Name Mixin selector official toStringLahu$a;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_241$class_242;toString()Ljava/lang/String;named toStringLnet/minecraft/block/LeverBlock$LeverType;toString()Ljava/lang/String;
-
getById
- Mappings:
Namespace Name Mixin selector official aLahu$a;a(I)Lahu$a;intermediary method_899Lnet/minecraft/class_241$class_242;method_899(I)Lnet/minecraft/class_241$class_242;named getByIdLnet/minecraft/block/LeverBlock$LeverType;getById(I)Lnet/minecraft/block/LeverBlock$LeverType;
-
getByDirection
- Mappings:
Namespace Name Mixin selector official aLahu$a;a(Lcq;Lcq;)Lahu$a;intermediary method_900Lnet/minecraft/class_241$class_242;method_900(Lnet/minecraft/class_1383;Lnet/minecraft/class_1383;)Lnet/minecraft/class_241$class_242;named getByDirectionLnet/minecraft/block/LeverBlock$LeverType;getByDirection(Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/LeverBlock$LeverType;
-
asString
- Specified by:
asStringin interfaceStringIdentifiable- Mappings:
Namespace Name Mixin selector official lLnw;l()Ljava/lang/String;intermediary method_6682Lnet/minecraft/class_1709;method_6682()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-