Enum Class LeverBlock.LeverType

java.lang.Object
java.lang.Enum<LeverBlock.LeverType>
net.minecraft.block.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 aop$a
intermediary net/minecraft/class_151$class_2196
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 Laop$a;a:Laop$a;
      intermediary field_9510 Lnet/minecraft/class_151$class_2196;field_9510:Lnet/minecraft/class_151$class_2196;
      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 Laop$a;b:Laop$a;
      intermediary field_9511 Lnet/minecraft/class_151$class_2196;field_9511:Lnet/minecraft/class_151$class_2196;
      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 Laop$a;c:Laop$a;
      intermediary field_9512 Lnet/minecraft/class_151$class_2196;field_9512:Lnet/minecraft/class_151$class_2196;
      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 Laop$a;d:Laop$a;
      intermediary field_9513 Lnet/minecraft/class_151$class_2196;field_9513:Lnet/minecraft/class_151$class_2196;
      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 Laop$a;e:Laop$a;
      intermediary field_9514 Lnet/minecraft/class_151$class_2196;field_9514:Lnet/minecraft/class_151$class_2196;
      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 Laop$a;f:Laop$a;
      intermediary field_9515 Lnet/minecraft/class_151$class_2196;field_9515:Lnet/minecraft/class_151$class_2196;
      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 Laop$a;g:Laop$a;
      intermediary field_9516 Lnet/minecraft/class_151$class_2196;field_9516:Lnet/minecraft/class_151$class_2196;
      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 Laop$a;h:Laop$a;
      intermediary field_9517 Lnet/minecraft/class_151$class_2196;field_9517:Lnet/minecraft/class_151$class_2196;
      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 Laop$a;i:[Laop$a;
      intermediary field_9518 Lnet/minecraft/class_151$class_2196;field_9518:[Lnet/minecraft/class_151$class_2196;
      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 Laop$a;j:I
      intermediary field_9519 Lnet/minecraft/class_151$class_2196;field_9519:I
      named id Lnet/minecraft/block/LeverBlock$LeverType;id:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official k Laop$a;k:Ljava/lang/String;
      intermediary field_9520 Lnet/minecraft/class_151$class_2196;field_9520: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 Laop$a;l:Lcv;
      intermediary field_9521 Lnet/minecraft/class_151$class_2196;field_9521:Lnet/minecraft/class_1354;
      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> Laop$a;<init>(Ljava/lang/String;IILjava/lang/String;Lcv;)V
      intermediary <init> Lnet/minecraft/class_151$class_2196;<init>(Ljava/lang/String;IILjava/lang/String;Lnet/minecraft/class_1354;)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 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 LeverBlock.LeverType 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
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official a Laop$a;a()I
      intermediary method_8811 Lnet/minecraft/class_151$class_2196;method_8811()I
      named getId Lnet/minecraft/block/LeverBlock$LeverType;getId()I
    • getDirection

      public Direction getDirection()
      Mappings:
      Namespace Name Mixin selector
      official c Laop$a;c()Lcv;
      intermediary method_8814 Lnet/minecraft/class_151$class_2196;method_8814()Lnet/minecraft/class_1354;
      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 Laop$a;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_151$class_2196;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 Laop$a;a(I)Laop$a;
      intermediary method_8812 Lnet/minecraft/class_151$class_2196;method_8812(I)Lnet/minecraft/class_151$class_2196;
      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 Laop$a;a(Lcv;Lcv;)Laop$a;
      intermediary method_8813 Lnet/minecraft/class_151$class_2196;method_8813(Lnet/minecraft/class_1354;Lnet/minecraft/class_1354;)Lnet/minecraft/class_151$class_2196;
      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 m Lox;m()Ljava/lang/String;
      intermediary method_10853 Lnet/minecraft/class_2604;method_10853()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;