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 named net/minecraft/loot/provider/score/FixedLootScoreProviderintermediary net/minecraft/class_5667official fffnamed nameintermediary comp_1903official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FixedLootScoreProvider> private final StringThe field for thenamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFixedLootScoreProvider(String name) Creates an instance of aFixedLootScoreProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LootScoreProviderfinal booleanIndicates whether some other object is "equal to" this one.Set<ContextParameter<?>> getScoreHolder(LootContext context) getType()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/loot/provider/score/FixedLootScoreProvider;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_45894Lnet/minecraft/class_5667;field_45894:Lcom/mojang/serialization/MapCodec;official aLfff;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
FixedLootScoreProvider
Creates an instance of aFixedLootScoreProviderrecord class.- Parameters:
name- the value for thenamerecord component
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/loot/provider/score/FixedLootScoreProvider;create(Ljava/lang/String;)Lnet/minecraft/loot/provider/score/LootScoreProvider;intermediary method_35572Lnet/minecraft/class_5667;method_35572(Ljava/lang/String;)Lnet/minecraft/class_5670;official aLfff;a(Ljava/lang/String;)Lffh;
-
getType
- Specified by:
getTypein interfaceLootScoreProvider- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/loot/provider/score/LootScoreProvider;getType()Lnet/minecraft/loot/provider/score/LootScoreProviderType;intermediary method_32475Lnet/minecraft/class_5670;method_32475()Lnet/minecraft/class_5669;official aLffh;a()Lffg;
-
getScoreHolder
- Specified by:
getScoreHolderin interfaceLootScoreProvider- Mappings:
Namespace Name Mixin selector named getScoreHolderLnet/minecraft/loot/provider/score/LootScoreProvider;getScoreHolder(Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/scoreboard/ScoreHolder;intermediary method_55379Lnet/minecraft/class_5670;method_55379(Lnet/minecraft/class_47;)Lnet/minecraft/class_9015;official aLffh;a(Lfat;)Lfhg;
-
getRequiredParameters
- Specified by:
getRequiredParametersin interfaceLootScoreProvider- Mappings:
Namespace Name Mixin selector named getRequiredParametersLnet/minecraft/loot/provider/score/LootScoreProvider;getRequiredParameters()Ljava/util/Set;intermediary method_32477Lnet/minecraft/class_5670;method_32477()Ljava/util/Set;official bLffh;b()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 thenamerecord component.- Returns:
- the value of the
namerecord component
-