Enum SandBlock.SandType

java.lang.Object
java.lang.Enum<SandBlock.SandType>
net.minecraft.block.SandBlock.SandType
All Implemented Interfaces:
Serializable, Comparable<SandBlock.SandType>, java.lang.constant.Constable, StringIdentifiable
Enclosing class:
SandBlock

public static enum SandBlock.SandType
extends Enum<SandBlock.SandType>
implements StringIdentifiable
Mappings:
Namespace Name
official ajh$a
intermediary net/minecraft/class_294$class_295
named net/minecraft/block/SandBlock$SandType
  • Enum Constant Details

    • SAND

      public static final SandBlock.SandType SAND
      Mappings:
      Namespace Name Mixin selector
      official a Lajh$a;a:Lajh$a;
      intermediary field_1165 Lnet/minecraft/class_294$class_295;field_1165:Lnet/minecraft/class_294$class_295;
      named SAND Lnet/minecraft/block/SandBlock$SandType;SAND:Lnet/minecraft/block/SandBlock$SandType;
    • RED_SAND

      public static final SandBlock.SandType RED_SAND
      Mappings:
      Namespace Name Mixin selector
      official b Lajh$a;b:Lajh$a;
      intermediary field_1166 Lnet/minecraft/class_294$class_295;field_1166:Lnet/minecraft/class_294$class_295;
      named RED_SAND Lnet/minecraft/block/SandBlock$SandType;RED_SAND:Lnet/minecraft/block/SandBlock$SandType;
  • Field Details

    • TYPES

      private static final SandBlock.SandType[] TYPES
      Mappings:
      Namespace Name Mixin selector
      official c Lajh$a;c:[Lajh$a;
      intermediary field_1167 Lnet/minecraft/class_294$class_295;field_1167:[Lnet/minecraft/class_294$class_295;
      named TYPES Lnet/minecraft/block/SandBlock$SandType;TYPES:[Lnet/minecraft/block/SandBlock$SandType;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      official d Lajh$a;d:I
      intermediary field_1168 Lnet/minecraft/class_294$class_295;field_1168:I
      named id Lnet/minecraft/block/SandBlock$SandType;id:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official e Lajh$a;e:Ljava/lang/String;
      intermediary field_1169 Lnet/minecraft/class_294$class_295;field_1169:Ljava/lang/String;
      named name Lnet/minecraft/block/SandBlock$SandType;name:Ljava/lang/String;
    • color

      private final MaterialColor color
      Mappings:
      Namespace Name Mixin selector
      official f Lajh$a;f:Larn;
      intermediary field_1170 Lnet/minecraft/class_294$class_295;field_1170:Lnet/minecraft/class_592;
      named color Lnet/minecraft/block/SandBlock$SandType;color:Lnet/minecraft/block/MaterialColor;
    • translationKey

      private final String translationKey
      Mappings:
      Namespace Name Mixin selector
      official g Lajh$a;g:Ljava/lang/String;
      intermediary field_1171 Lnet/minecraft/class_294$class_295;field_1171:Ljava/lang/String;
      named translationKey Lnet/minecraft/block/SandBlock$SandType;translationKey:Ljava/lang/String;
  • Constructor Details

    • SandType

      private SandType​(int id, String name, String translationKey, MaterialColor color)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lajh$a;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Larn;)V
      intermediary <init> Lnet/minecraft/class_294$class_295;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Lnet/minecraft/class_592;)V
      named <init> Lnet/minecraft/block/SandBlock$SandType;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Lnet/minecraft/block/MaterialColor;)V
  • Method Details

    • values

      public static SandBlock.SandType[] 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 SandBlock.SandType 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 Lajh$a;a()I
      intermediary method_985 Lnet/minecraft/class_294$class_295;method_985()I
      named getId Lnet/minecraft/block/SandBlock$SandType;getId()I
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SandBlock.SandType>
      Mappings:
      Namespace Name Mixin selector
      official toString Lajh$a;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_294$class_295;toString()Ljava/lang/String;
      named toString Lnet/minecraft/block/SandBlock$SandType;toString()Ljava/lang/String;
    • getColor

      public MaterialColor getColor()
      Mappings:
      Namespace Name Mixin selector
      official c Lajh$a;c()Larn;
      intermediary method_987 Lnet/minecraft/class_294$class_295;method_987()Lnet/minecraft/class_592;
      named getColor Lnet/minecraft/block/SandBlock$SandType;getColor()Lnet/minecraft/block/MaterialColor;
    • getById

      public static SandBlock.SandType getById​(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lajh$a;a(I)Lajh$a;
      intermediary method_986 Lnet/minecraft/class_294$class_295;method_986(I)Lnet/minecraft/class_294$class_295;
      named getById Lnet/minecraft/block/SandBlock$SandType;getById(I)Lnet/minecraft/block/SandBlock$SandType;
    • 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;
    • getTranslationKey

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official d Lajh$a;d()Ljava/lang/String;
      intermediary method_988 Lnet/minecraft/class_294$class_295;method_988()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/block/SandBlock$SandType;getTranslationKey()Ljava/lang/String;