Package net.minecraft.block
Enum Class LeverBlock.LeverType
- All Implemented Interfaces:
Serializable,Comparable<LeverBlock.LeverType>,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_151$class_2196named 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
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()static LeverBlock.LeverTypegetByDirection(Direction dir1, Direction dir2) static LeverBlock.LeverTypegetById(int id) intgetId()toString()static LeverBlock.LeverTypeReturns the enum constant of this class with the specified name.static LeverBlock.LeverType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOWN_X
- Mappings:
Namespace Name Mixin selector official aLahu$a;a:Lahu$a;intermediary field_9510Lnet/minecraft/class_151$class_2196;field_9510:Lnet/minecraft/class_151$class_2196;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_9511Lnet/minecraft/class_151$class_2196;field_9511:Lnet/minecraft/class_151$class_2196;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_9512Lnet/minecraft/class_151$class_2196;field_9512:Lnet/minecraft/class_151$class_2196;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_9513Lnet/minecraft/class_151$class_2196;field_9513:Lnet/minecraft/class_151$class_2196;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_9514Lnet/minecraft/class_151$class_2196;field_9514:Lnet/minecraft/class_151$class_2196;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_9515Lnet/minecraft/class_151$class_2196;field_9515:Lnet/minecraft/class_151$class_2196;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_9516Lnet/minecraft/class_151$class_2196;field_9516:Lnet/minecraft/class_151$class_2196;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_9517Lnet/minecraft/class_151$class_2196;field_9517:Lnet/minecraft/class_151$class_2196;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_9518Lnet/minecraft/class_151$class_2196;field_9518:[Lnet/minecraft/class_151$class_2196;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_9519Lnet/minecraft/class_151$class_2196;field_9519:Inamed idLnet/minecraft/block/LeverBlock$LeverType;id:I
-
name
- Mappings:
Namespace Name Mixin selector official kLahu$a;k:Ljava/lang/String;intermediary field_9520Lnet/minecraft/class_151$class_2196;field_9520: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_9521Lnet/minecraft/class_151$class_2196;field_9521:Lnet/minecraft/class_1354;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_151$class_2196;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_1354;)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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLahu$a;a()Iintermediary method_8811Lnet/minecraft/class_151$class_2196;method_8811()Inamed getIdLnet/minecraft/block/LeverBlock$LeverType;getId()I
-
getDirection
- Mappings:
Namespace Name Mixin selector official cLahu$a;c()Lcq;intermediary method_8814Lnet/minecraft/class_151$class_2196;method_8814()Lnet/minecraft/class_1354;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_151$class_2196;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_8812Lnet/minecraft/class_151$class_2196;method_8812(I)Lnet/minecraft/class_151$class_2196;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_8813Lnet/minecraft/class_151$class_2196;method_8813(Lnet/minecraft/class_1354;Lnet/minecraft/class_1354;)Lnet/minecraft/class_151$class_2196;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_10853Lnet/minecraft/class_2604;method_10853()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-