Record Class FixedLootScoreProvider
java.lang.Object
java.lang.Record
net.minecraft.loot.provider.score.FixedLootScoreProvider
- Record Components:
name
-
- All Implemented Interfaces:
LootScoreProvider
- Mappings:
Namespace Name official egq
intermediary net/minecraft/class_5667
named net/minecraft/loot/provider/score/FixedLootScoreProvider
official b
intermediary comp_1903
named name
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FixedLootScoreProvider>
private final String
The field for thename
record component. -
Constructor Summary
ConstructorDescriptionFixedLootScoreProvider
(String name) Creates an instance of aFixedLootScoreProvider
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LootScoreProvider
final boolean
Indicates whether some other object is "equal to" this one.getName
(LootContext context) getType()
final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Legq;a:Lcom/mojang/serialization/Codec;
intermediary field_45894
Lnet/minecraft/class_5667;field_45894:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/loot/provider/score/FixedLootScoreProvider;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
FixedLootScoreProvider
Creates an instance of aFixedLootScoreProvider
record class.- Parameters:
name
- the value for thename
record component
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Legq;a(Ljava/lang/String;)Legs;
intermediary method_35572
Lnet/minecraft/class_5667;method_35572(Ljava/lang/String;)Lnet/minecraft/class_5670;
named create
Lnet/minecraft/loot/provider/score/FixedLootScoreProvider;create(Ljava/lang/String;)Lnet/minecraft/loot/provider/score/LootScoreProvider;
-
getType
- Specified by:
getType
in interfaceLootScoreProvider
- Mappings:
Namespace Name Mixin selector official a
Legs;a()Legr;
intermediary method_32475
Lnet/minecraft/class_5670;method_32475()Lnet/minecraft/class_5669;
named getType
Lnet/minecraft/loot/provider/score/LootScoreProvider;getType()Lnet/minecraft/loot/provider/score/LootScoreProviderType;
-
getName
- Specified by:
getName
in interfaceLootScoreProvider
- Mappings:
Namespace Name Mixin selector official a
Legs;a(Lecq;)Ljava/lang/String;
intermediary method_32476
Lnet/minecraft/class_5670;method_32476(Lnet/minecraft/class_47;)Ljava/lang/String;
named getName
Lnet/minecraft/loot/provider/score/LootScoreProvider;getName(Lnet/minecraft/loot/context/LootContext;)Ljava/lang/String;
-
getRequiredParameters
- Specified by:
getRequiredParameters
in interfaceLootScoreProvider
- Mappings:
Namespace Name Mixin selector official b
Legs;b()Ljava/util/Set;
intermediary method_32477
Lnet/minecraft/class_5670;method_32477()Ljava/util/Set;
named getRequiredParameters
Lnet/minecraft/loot/provider/score/LootScoreProvider;getRequiredParameters()Ljava/util/Set;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-