Enum Class LootContext.BlockEntityTarget
java.lang.Object
java.lang.Enum<LootContext.BlockEntityTarget>
net.minecraft.world.level.storage.loot.LootContext.BlockEntityTarget
- All Implemented Interfaces:
Serializable, Comparable<LootContext.BlockEntityTarget>, Constable, StringRepresentable, LootContextArg<BlockEntity>, LootContextArg.SimpleGetter<BlockEntity>
- Enclosing class:
LootContext
public static enum LootContext.BlockEntityTarget
extends Enum<LootContext.BlockEntityTarget>
implements StringRepresentable, LootContextArg.SimpleGetter<BlockEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface LootContextArg
LootContextArg.ArgCodecBuilder<R>, LootContextArg.Getter<T,R>, LootContextArg.SimpleGetter<T> Nested classes/interfaces inherited from interface StringRepresentable
StringRepresentable.EnumCodec<E>, StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final ContextKey<? extends BlockEntity> Fields inherited from interface LootContextArg
ENTITY_OR_BLOCKFields inherited from interface StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBlockEntityTarget(String name, ContextKey<? extends BlockEntity> param) -
Method Summary
Modifier and TypeMethodDescriptionContextKey<? extends BlockEntity> Returns the enum constant of this class with the specified name.static LootContext.BlockEntityTarget[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface LootContextArg.SimpleGetter
get
-
Enum Constant Details
-
BLOCK_ENTITY
-
-
Field Details
-
name
-
param
-
-
Constructor Details
-
BlockEntityTarget
-
-
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<BlockEntity>- Specified by:
contextParamin interfaceLootContextArg.SimpleGetter<BlockEntity>
-
getSerializedName
- Specified by:
getSerializedNamein interfaceStringRepresentable
-