Enum LeverBlock.LeverType

java.lang.Object
java.lang.Enum<LeverBlock.LeverType>
net.minecraft.block.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$a
intermediary net/minecraft/class_241$class_242
named net/minecraft/block/LeverBlock$LeverType
  • Enum Constant Details

    • DOWN_X

      public static final LeverBlock.LeverType DOWN_X
      Mappings:
      Namespace Name Mixin selector
      official a Lahu$a;a:Lahu$a;
      intermediary field_1018 Lnet/minecraft/class_241$class_242;field_1018:Lnet/minecraft/class_241$class_242;
      named DOWN_X Lnet/minecraft/block/LeverBlock$LeverType;DOWN_X:Lnet/minecraft/block/LeverBlock$LeverType;
    • EAST

      public static final LeverBlock.LeverType EAST
      Mappings:
      Namespace Name Mixin selector
      official b Lahu$a;b:Lahu$a;
      intermediary field_1019 Lnet/minecraft/class_241$class_242;field_1019:Lnet/minecraft/class_241$class_242;
      named EAST Lnet/minecraft/block/LeverBlock$LeverType;EAST:Lnet/minecraft/block/LeverBlock$LeverType;
    • WEST

      public static final LeverBlock.LeverType WEST
      Mappings:
      Namespace Name Mixin selector
      official c Lahu$a;c:Lahu$a;
      intermediary field_1020 Lnet/minecraft/class_241$class_242;field_1020:Lnet/minecraft/class_241$class_242;
      named WEST Lnet/minecraft/block/LeverBlock$LeverType;WEST:Lnet/minecraft/block/LeverBlock$LeverType;
    • SOUTH

      public static final LeverBlock.LeverType SOUTH
      Mappings:
      Namespace Name Mixin selector
      official d Lahu$a;d:Lahu$a;
      intermediary field_1021 Lnet/minecraft/class_241$class_242;field_1021:Lnet/minecraft/class_241$class_242;
      named SOUTH Lnet/minecraft/block/LeverBlock$LeverType;SOUTH:Lnet/minecraft/block/LeverBlock$LeverType;
    • NORTH

      public static final LeverBlock.LeverType NORTH
      Mappings:
      Namespace Name Mixin selector
      official e Lahu$a;e:Lahu$a;
      intermediary field_1022 Lnet/minecraft/class_241$class_242;field_1022:Lnet/minecraft/class_241$class_242;
      named NORTH Lnet/minecraft/block/LeverBlock$LeverType;NORTH:Lnet/minecraft/block/LeverBlock$LeverType;
    • UP_Z

      public static final LeverBlock.LeverType UP_Z
      Mappings:
      Namespace Name Mixin selector
      official f Lahu$a;f:Lahu$a;
      intermediary field_1023 Lnet/minecraft/class_241$class_242;field_1023:Lnet/minecraft/class_241$class_242;
      named UP_Z Lnet/minecraft/block/LeverBlock$LeverType;UP_Z:Lnet/minecraft/block/LeverBlock$LeverType;
    • UP_X

      public static final LeverBlock.LeverType UP_X
      Mappings:
      Namespace Name Mixin selector
      official g Lahu$a;g:Lahu$a;
      intermediary field_1024 Lnet/minecraft/class_241$class_242;field_1024:Lnet/minecraft/class_241$class_242;
      named UP_X Lnet/minecraft/block/LeverBlock$LeverType;UP_X:Lnet/minecraft/block/LeverBlock$LeverType;
    • DOWN_Z

      public static final LeverBlock.LeverType DOWN_Z
      Mappings:
      Namespace Name Mixin selector
      official h Lahu$a;h:Lahu$a;
      intermediary field_1025 Lnet/minecraft/class_241$class_242;field_1025:Lnet/minecraft/class_241$class_242;
      named DOWN_Z Lnet/minecraft/block/LeverBlock$LeverType;DOWN_Z:Lnet/minecraft/block/LeverBlock$LeverType;
  • Field Details

    • TYPES

      private static final LeverBlock.LeverType[] TYPES
      Mappings:
      Namespace Name Mixin selector
      official i Lahu$a;i:[Lahu$a;
      intermediary field_1026 Lnet/minecraft/class_241$class_242;field_1026:[Lnet/minecraft/class_241$class_242;
      named TYPES Lnet/minecraft/block/LeverBlock$LeverType;TYPES:[Lnet/minecraft/block/LeverBlock$LeverType;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      official j Lahu$a;j:I
      intermediary field_1027 Lnet/minecraft/class_241$class_242;field_1027:I
      named id Lnet/minecraft/block/LeverBlock$LeverType;id:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official k Lahu$a;k:Ljava/lang/String;
      intermediary field_1028 Lnet/minecraft/class_241$class_242;field_1028:Ljava/lang/String;
      named name Lnet/minecraft/block/LeverBlock$LeverType;name:Ljava/lang/String;
    • direction

      private final Direction direction
      Mappings:
      Namespace Name Mixin selector
      official l Lahu$a;l:Lcq;
      intermediary field_1029 Lnet/minecraft/class_241$class_242;field_1029:Lnet/minecraft/class_1383;
      named direction Lnet/minecraft/block/LeverBlock$LeverType;direction:Lnet/minecraft/util/math/Direction;
  • Constructor Details

    • LeverType

      private LeverType​(int id, String name, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lahu$a;<init>(Ljava/lang/String;IILjava/lang/String;Lcq;)V
      intermediary <init> Lnet/minecraft/class_241$class_242;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_1383;)V
      named <init> Lnet/minecraft/block/LeverBlock$LeverType;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/util/math/Direction;)V
  • Method Details

    • values

      public static LeverBlock.LeverType[] 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

      public static LeverBlock.LeverType valueOf​(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lahu$a;a()I
      intermediary method_898 Lnet/minecraft/class_241$class_242;method_898()I
      named getId Lnet/minecraft/block/LeverBlock$LeverType;getId()I
    • getDirection

      public Direction getDirection()
      Mappings:
      Namespace Name Mixin selector
      official c Lahu$a;c()Lcq;
      intermediary method_901 Lnet/minecraft/class_241$class_242;method_901()Lnet/minecraft/class_1383;
      named getDirection Lnet/minecraft/block/LeverBlock$LeverType;getDirection()Lnet/minecraft/util/math/Direction;
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LeverBlock.LeverType>
      Mappings:
      Namespace Name Mixin selector
      official toString Lahu$a;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_241$class_242;toString()Ljava/lang/String;
      named toString Lnet/minecraft/block/LeverBlock$LeverType;toString()Ljava/lang/String;
    • getById

      public static LeverBlock.LeverType getById​(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lahu$a;a(I)Lahu$a;
      intermediary method_899 Lnet/minecraft/class_241$class_242;method_899(I)Lnet/minecraft/class_241$class_242;
      named getById Lnet/minecraft/block/LeverBlock$LeverType;getById(I)Lnet/minecraft/block/LeverBlock$LeverType;
    • getByDirection

      public static LeverBlock.LeverType getByDirection​(Direction dir1, Direction dir2)
      Mappings:
      Namespace Name Mixin selector
      official a Lahu$a;a(Lcq;Lcq;)Lahu$a;
      intermediary method_900 Lnet/minecraft/class_241$class_242;method_900(Lnet/minecraft/class_1383;Lnet/minecraft/class_1383;)Lnet/minecraft/class_241$class_242;
      named getByDirection Lnet/minecraft/block/LeverBlock$LeverType;getByDirection(Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/LeverBlock$LeverType;
    • asString

      public String asString()
      Specified by:
      asString in interface StringIdentifiable
      Mappings:
      Namespace Name Mixin selector
      official l Lnw;l()Ljava/lang/String;
      intermediary method_6682 Lnet/minecraft/class_1709;method_6682()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;