Enum Class LootContext.ItemStackTarget
java.lang.Object
java.lang.Enum<LootContext.ItemStackTarget>
net.minecraft.world.level.storage.loot.LootContext.ItemStackTarget
- All Implemented Interfaces:
Serializable,Comparable<LootContext.ItemStackTarget>,Constable,StringRepresentable,LootContextArg<ItemStack>,LootContextArg.SimpleGetter<ItemStack>
- Enclosing class:
LootContext
public static enum LootContext.ItemStackTarget
extends Enum<LootContext.ItemStackTarget>
implements StringRepresentable, LootContextArg.SimpleGetter<ItemStack>
-
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.world.level.storage.loot.LootContextArg
LootContextArg.ArgCodecBuilder<R>, LootContextArg.Getter<T,R>, LootContextArg.SimpleGetter<T> Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final ContextKey<? extends ItemStack> Fields inherited from interface net.minecraft.world.level.storage.loot.LootContextArg
ENTITY_OR_BLOCKFields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateItemStackTarget(String pName, ContextKey<? extends ItemStack> pParam) -
Method Summary
Modifier and TypeMethodDescriptionContextKey<? extends ItemStack> static LootContext.ItemStackTargetReturns the enum constant of this class with the specified name.static LootContext.ItemStackTarget[]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.world.level.storage.loot.LootContextArg.SimpleGetter
get
-
Enum Constant Details
-
TOOL
-
-
Field Details
-
name
-
param
-
-
Constructor Details
-
ItemStackTarget
-
-
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 interfaceLootContextArg<ItemStack>- Specified by:
contextParamin interfaceLootContextArg.SimpleGetter<ItemStack>
-
getSerializedName
- Specified by:
getSerializedNamein interfaceStringRepresentable
-