Package net.minecraft.loot.context
Enum Class LootContext.ItemStackReference
java.lang.Object
java.lang.Enum<LootContext.ItemStackReference>
net.minecraft.loot.context.LootContext.ItemStackReference
- All Implemented Interfaces:
Serializable,Comparable<LootContext.ItemStackReference>,Constable,LootEntityValueSource<ItemStack>,LootEntityValueSource.ContextBased<ItemStack>,StringIdentifiable
- Enclosing class:
LootContext
public static enum LootContext.ItemStackReference
extends Enum<LootContext.ItemStackReference>
implements StringIdentifiable, LootEntityValueSource.ContextBased<ItemStack>
- Mappings:
Namespace Name named net/minecraft/loot/context/LootContext$ItemStackReferenceintermediary net/minecraft/class_47$class_12065official fmr$d
-
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.loot.context.LootEntityValueSource
LootEntityValueSource.Builder<R>, LootEntityValueSource.ContextBased<T>, LootEntityValueSource.ContextComponentBased<T,R> 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 Stringprivate final ContextParameter<? extends ItemStack> Fields inherited from interface net.minecraft.loot.context.LootEntityValueSource
ENTITY_OR_BLOCK_ENTITY_CODECFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateItemStackReference(String id, ContextParameter<? extends ItemStack> parameter) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.ContextParameter<? extends ItemStack> Returns the enum constant of this class with the specified name.static LootContext.ItemStackReference[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.minecraft.loot.context.LootEntityValueSource.ContextBased
get
-
Enum Constant Details
-
TOOL
- Mappings:
Namespace Name Mixin selector named TOOLLnet/minecraft/loot/context/LootContext$ItemStackReference;TOOL:Lnet/minecraft/loot/context/LootContext$ItemStackReference;intermediary field_63054Lnet/minecraft/class_47$class_12065;field_63054:Lnet/minecraft/class_47$class_12065;official aLfmr$d;a:Lfmr$d;
-
-
Field Details
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/loot/context/LootContext$ItemStackReference;id:Ljava/lang/String;intermediary field_63055Lnet/minecraft/class_47$class_12065;field_63055:Ljava/lang/String;official bLfmr$d;b:Ljava/lang/String;
-
parameter
- Mappings:
Namespace Name Mixin selector named parameterLnet/minecraft/loot/context/LootContext$ItemStackReference;parameter:Lnet/minecraft/util/context/ContextParameter;intermediary field_63056Lnet/minecraft/class_47$class_12065;field_63056:Lnet/minecraft/class_169;official cLfmr$d;c:Lbhu;
-
-
Constructor Details
-
ItemStackReference
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/loot/context/LootContext$ItemStackReference;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/util/context/ContextParameter;)Vintermediary <init>Lnet/minecraft/class_47$class_12065;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)Vofficial <init>Lfmr$d;<init>(Ljava/lang/String;ILjava/lang/String;Lbhu;)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
-
contextParam
- Specified by:
contextParamin interfaceLootEntityValueSource<ItemStack>- Specified by:
contextParamin interfaceLootEntityValueSource.ContextBased<ItemStack>- Mappings:
Namespace Name Mixin selector named contextParamLnet/minecraft/loot/context/LootEntityValueSource;contextParam()Lnet/minecraft/util/context/ContextParameter;intermediary comp_4920Lnet/minecraft/class_12283;comp_4920()Lnet/minecraft/class_169;official aLfms;a()Lbhu;
-
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 cLbhg;c()Ljava/lang/String;
-