Package net.minecraft.loot.context
Enum Class LootContext.Source
- All Implemented Interfaces:
Serializable,Comparable<LootContext.Source>,Constable,StringIdentifiable
- Enclosing class:
LootContext
public static enum LootContext.Source
extends Enum<LootContext.Source>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/loot/context/LootContext$Sourceintermediary net/minecraft/class_47$class_9319official fiz$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContextParameter<? extends BlockEntity> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSource(String id, ContextParameter<? extends BlockEntity> contextParameter) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.ContextParameter<? extends BlockEntity> static LootContext.SourceReturns the enum constant of this class with the specified name.static LootContext.Source[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK_ENTITY
- Mappings:
Namespace Name Mixin selector named BLOCK_ENTITYLnet/minecraft/loot/context/LootContext$Source;BLOCK_ENTITY:Lnet/minecraft/loot/context/LootContext$Source;intermediary field_49436Lnet/minecraft/class_47$class_9319;field_49436:Lnet/minecraft/class_47$class_9319;official aLfiz$a;a:Lfiz$a;
-
-
Field Details
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/loot/context/LootContext$Source;id:Ljava/lang/String;intermediary field_49438Lnet/minecraft/class_47$class_9319;field_49438:Ljava/lang/String;official bLfiz$a;b:Ljava/lang/String;
-
field_63053
- Mappings:
Namespace Name Mixin selector named field_63053Lnet/minecraft/loot/context/LootContext$Source;field_63053:Lnet/minecraft/util/context/ContextParameter;intermediary field_63053Lnet/minecraft/class_47$class_9319;field_63053:Lnet/minecraft/class_169;official cLfiz$a;c:Lbgu;
-
-
Constructor Details
-
Source
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/loot/context/LootContext$Source;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/context/ContextParameter;)Vintermediary <init>Lnet/minecraft/class_47$class_9319;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)Vofficial <init>Lfiz$a;<init>(Ljava/lang/String;ILjava/lang/String;Lbgu;)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
-
method_74898
- Mappings:
Namespace Name Mixin selector named method_74898Lnet/minecraft/loot/context/LootContext$Source;method_74898()Lnet/minecraft/util/context/ContextParameter;intermediary method_74898Lnet/minecraft/class_47$class_9319;method_74898()Lnet/minecraft/class_169;official aLfiz$a;a()Lbgu;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbgh;c()Ljava/lang/String;
-