Package net.minecraft.loot.function
Enum Class CopyNameLootFunction.Source
- All Implemented Interfaces:
Serializable,Comparable<CopyNameLootFunction.Source>,Constable,StringIdentifiable
- Enclosing class:
CopyNameLootFunction
public static enum CopyNameLootFunction.Source
extends Enum<CopyNameLootFunction.Source>
implements StringIdentifiable
- Mappings:
Namespace Name official edk$aintermediary net/minecraft/class_101$class_102named net/minecraft/loot/function/CopyNameLootFunction$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.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<CopyNameLootFunction.Source>private final String(package private) final LootContextParameter<?>Fields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.static CopyNameLootFunction.SourceReturns the enum constant of this class with the specified name.static CopyNameLootFunction.Source[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THIS
- Mappings:
Namespace Name Mixin selector official aLedk$a;a:Ledk$a;intermediary field_1022Lnet/minecraft/class_101$class_102;field_1022:Lnet/minecraft/class_101$class_102;named THISLnet/minecraft/loot/function/CopyNameLootFunction$Source;THIS:Lnet/minecraft/loot/function/CopyNameLootFunction$Source;
-
KILLER
- Mappings:
Namespace Name Mixin selector official bLedk$a;b:Ledk$a;intermediary field_1019Lnet/minecraft/class_101$class_102;field_1019:Lnet/minecraft/class_101$class_102;named KILLERLnet/minecraft/loot/function/CopyNameLootFunction$Source;KILLER:Lnet/minecraft/loot/function/CopyNameLootFunction$Source;
-
KILLER_PLAYER
- Mappings:
Namespace Name Mixin selector official cLedk$a;c:Ledk$a;intermediary field_1020Lnet/minecraft/class_101$class_102;field_1020:Lnet/minecraft/class_101$class_102;named KILLER_PLAYERLnet/minecraft/loot/function/CopyNameLootFunction$Source;KILLER_PLAYER:Lnet/minecraft/loot/function/CopyNameLootFunction$Source;
-
BLOCK_ENTITY
- Mappings:
Namespace Name Mixin selector official dLedk$a;d:Ledk$a;intermediary field_1023Lnet/minecraft/class_101$class_102;field_1023:Lnet/minecraft/class_101$class_102;named BLOCK_ENTITYLnet/minecraft/loot/function/CopyNameLootFunction$Source;BLOCK_ENTITY:Lnet/minecraft/loot/function/CopyNameLootFunction$Source;
-
-
Field Details
-
field_45818
- Mappings:
Namespace Name Mixin selector official eLedk$a;e:Lcom/mojang/serialization/Codec;intermediary field_45818Lnet/minecraft/class_101$class_102;field_45818:Lcom/mojang/serialization/Codec;named field_45818Lnet/minecraft/loot/function/CopyNameLootFunction$Source;field_45818:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector official fLedk$a;f:Ljava/lang/String;intermediary field_1025Lnet/minecraft/class_101$class_102;field_1025:Ljava/lang/String;named nameLnet/minecraft/loot/function/CopyNameLootFunction$Source;name:Ljava/lang/String;
-
parameter
- Mappings:
Namespace Name Mixin selector official gLedk$a;g:Leep;intermediary field_1024Lnet/minecraft/class_101$class_102;field_1024:Lnet/minecraft/class_169;named parameterLnet/minecraft/loot/function/CopyNameLootFunction$Source;parameter:Lnet/minecraft/loot/context/LootContextParameter;
-
-
Constructor Details
-
Source
- Mappings:
Namespace Name Mixin selector official <init>Ledk$a;<init>(Ljava/lang/String;ILjava/lang/String;Leep;)Vintermediary <init>Lnet/minecraft/class_101$class_102;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)Vnamed <init>Lnet/minecraft/loot/function/CopyNameLootFunction$Source;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/loot/context/LootContextParameter;)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
-
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 cLash;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-