Package net.minecraft.block
Enum 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$aintermediary net/minecraft/class_294$class_295named net/minecraft/block/SandBlock$SandType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private MaterialColorcolorprivate intidprivate Stringnameprivate StringtranslationKeyprivate static SandBlock.SandType[]TYPES -
Constructor Summary
Constructors Modifier Constructor Description privateSandType(int id, String name, String translationKey, MaterialColor color) -
Method Summary
Modifier and Type Method Description StringasString()static SandBlock.SandTypegetById(int id)MaterialColorgetColor()intgetId()StringgetTranslationKey()StringtoString()static SandBlock.SandTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SandBlock.SandType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SAND
- Mappings:
Namespace Name Mixin selector official aLajh$a;a:Lajh$a;intermediary field_1165Lnet/minecraft/class_294$class_295;field_1165:Lnet/minecraft/class_294$class_295;named SANDLnet/minecraft/block/SandBlock$SandType;SAND:Lnet/minecraft/block/SandBlock$SandType;
-
RED_SAND
- Mappings:
Namespace Name Mixin selector official bLajh$a;b:Lajh$a;intermediary field_1166Lnet/minecraft/class_294$class_295;field_1166:Lnet/minecraft/class_294$class_295;named RED_SANDLnet/minecraft/block/SandBlock$SandType;RED_SAND:Lnet/minecraft/block/SandBlock$SandType;
-
-
Field Details
-
TYPES
- Mappings:
Namespace Name Mixin selector official cLajh$a;c:[Lajh$a;intermediary field_1167Lnet/minecraft/class_294$class_295;field_1167:[Lnet/minecraft/class_294$class_295;named TYPESLnet/minecraft/block/SandBlock$SandType;TYPES:[Lnet/minecraft/block/SandBlock$SandType;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official dLajh$a;d:Iintermediary field_1168Lnet/minecraft/class_294$class_295;field_1168:Inamed idLnet/minecraft/block/SandBlock$SandType;id:I
-
name
- Mappings:
Namespace Name Mixin selector official eLajh$a;e:Ljava/lang/String;intermediary field_1169Lnet/minecraft/class_294$class_295;field_1169:Ljava/lang/String;named nameLnet/minecraft/block/SandBlock$SandType;name:Ljava/lang/String;
-
color
- Mappings:
Namespace Name Mixin selector official fLajh$a;f:Larn;intermediary field_1170Lnet/minecraft/class_294$class_295;field_1170:Lnet/minecraft/class_592;named colorLnet/minecraft/block/SandBlock$SandType;color:Lnet/minecraft/block/MaterialColor;
-
translationKey
- Mappings:
Namespace Name Mixin selector official gLajh$a;g:Ljava/lang/String;intermediary field_1171Lnet/minecraft/class_294$class_295;field_1171:Ljava/lang/String;named translationKeyLnet/minecraft/block/SandBlock$SandType;translationKey:Ljava/lang/String;
-
-
Constructor Details
-
SandType
- Mappings:
Namespace Name Mixin selector official <init>Lajh$a;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Larn;)Vintermediary <init>Lnet/minecraft/class_294$class_295;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Lnet/minecraft/class_592;)Vnamed <init>Lnet/minecraft/block/SandBlock$SandType;<init>(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;Lnet/minecraft/block/MaterialColor;)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 aLajh$a;a()Iintermediary method_985Lnet/minecraft/class_294$class_295;method_985()Inamed getIdLnet/minecraft/block/SandBlock$SandType;getId()I
-
toString
- Overrides:
toStringin classEnum<SandBlock.SandType>- Mappings:
Namespace Name Mixin selector official toStringLajh$a;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_294$class_295;toString()Ljava/lang/String;named toStringLnet/minecraft/block/SandBlock$SandType;toString()Ljava/lang/String;
-
getColor
- Mappings:
Namespace Name Mixin selector official cLajh$a;c()Larn;intermediary method_987Lnet/minecraft/class_294$class_295;method_987()Lnet/minecraft/class_592;named getColorLnet/minecraft/block/SandBlock$SandType;getColor()Lnet/minecraft/block/MaterialColor;
-
getById
- Mappings:
Namespace Name Mixin selector official aLajh$a;a(I)Lajh$a;intermediary method_986Lnet/minecraft/class_294$class_295;method_986(I)Lnet/minecraft/class_294$class_295;named getByIdLnet/minecraft/block/SandBlock$SandType;getById(I)Lnet/minecraft/block/SandBlock$SandType;
-
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;
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector official dLajh$a;d()Ljava/lang/String;intermediary method_988Lnet/minecraft/class_294$class_295;method_988()Ljava/lang/String;named getTranslationKeyLnet/minecraft/block/SandBlock$SandType;getTranslationKey()Ljava/lang/String;
-