Package net.minecraft.loot.function
Enum Class CopyComponentsLootFunction.Source
java.lang.Object
java.lang.Enum<CopyComponentsLootFunction.Source>
net.minecraft.loot.function.CopyComponentsLootFunction.Source
- All Implemented Interfaces:
Serializable,Comparable<CopyComponentsLootFunction.Source>,Constable,StringIdentifiable
- Enclosing class:
CopyComponentsLootFunction
public static enum CopyComponentsLootFunction.Source
extends Enum<CopyComponentsLootFunction.Source>
implements StringIdentifiable
- Mappings:
Namespace Name official eon$bintermediary net/minecraft/class_9317$class_9319named net/minecraft/loot/function/CopyComponentsLootFunction$Source
-
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 TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CopyComponentsLootFunction.Source> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.getComponents(LootContext context) Returns the enum constant of this class with the specified name.static CopyComponentsLootFunction.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 official aLeon$b;a:Leon$b;intermediary field_49436Lnet/minecraft/class_9317$class_9319;field_49436:Lnet/minecraft/class_9317$class_9319;named BLOCK_ENTITYLnet/minecraft/loot/function/CopyComponentsLootFunction$Source;BLOCK_ENTITY:Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLeon$b;b:Lcom/mojang/serialization/Codec;intermediary field_49437Lnet/minecraft/class_9317$class_9319;field_49437:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/loot/function/CopyComponentsLootFunction$Source;CODEC:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector official cLeon$b;c:Ljava/lang/String;intermediary field_49438Lnet/minecraft/class_9317$class_9319;field_49438:Ljava/lang/String;named idLnet/minecraft/loot/function/CopyComponentsLootFunction$Source;id:Ljava/lang/String;
-
-
Constructor Details
-
Source
- Mappings:
Namespace Name Mixin selector official <init>Leon$b;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_9317$class_9319;<init>(Ljava/lang/String;ILjava/lang/String;)Vnamed <init>Lnet/minecraft/loot/function/CopyComponentsLootFunction$Source;<init>(Ljava/lang/String;ILjava/lang/String;)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
-
getComponents
- Mappings:
Namespace Name Mixin selector official aLeon$b;a(Lenk;)Ljn;intermediary method_57644Lnet/minecraft/class_9317$class_9319;method_57644(Lnet/minecraft/class_47;)Lnet/minecraft/class_9323;named getComponentsLnet/minecraft/loot/function/CopyComponentsLootFunction$Source;getComponents(Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/component/ComponentMap;
-
getRequiredParameters
- Mappings:
Namespace Name Mixin selector official aLeon$b;a()Ljava/util/Set;intermediary method_57643Lnet/minecraft/class_9317$class_9319;method_57643()Ljava/util/Set;named getRequiredParametersLnet/minecraft/loot/function/CopyComponentsLootFunction$Source;getRequiredParameters()Ljava/util/Set;
-
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 official cLayg;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-