Record Class ContextLootScoreProvider
java.lang.Object
java.lang.Record
net.minecraft.loot.provider.score.ContextLootScoreProvider
- Record Components:
- target-
- All Implemented Interfaces:
- LootScoreProvider
public record ContextLootScoreProvider(LootContext.EntityTarget target)
extends Record
implements LootScoreProvider
- Mappings:
- Namespace - Name - named - net/minecraft/loot/provider/score/ContextLootScoreProvider- intermediary - net/minecraft/class_5664- official - fad- named - target- intermediary - comp_1902- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ContextLootScoreProvider> static final com.mojang.serialization.Codec<ContextLootScoreProvider> private final LootContext.EntityTargetThe field for thetargetrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aContextLootScoreProviderrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionstatic LootScoreProvidercreate(LootContext.EntityTarget target) final 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.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
targetThe field for thetargetrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/provider/score/ContextLootScoreProvider;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_45892- Lnet/minecraft/class_5664;field_45892:Lcom/mojang/serialization/MapCodec;- official - a- Lfad;a:Lcom/mojang/serialization/MapCodec;
 
- 
INLINE_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - INLINE_CODEC- Lnet/minecraft/loot/provider/score/ContextLootScoreProvider;INLINE_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45893- Lnet/minecraft/class_5664;field_45893:Lcom/mojang/serialization/Codec;- official - b- Lfad;b:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
ContextLootScoreProviderCreates an instance of aContextLootScoreProviderrecord class.- Parameters:
- target- the value for the- targetrecord component
 
 
- 
- 
Method Details- 
create- Mappings:
- Namespace - Name - Mixin selector - named - create- Lnet/minecraft/loot/provider/score/ContextLootScoreProvider;create(Lnet/minecraft/loot/context/LootContext$EntityTarget;)Lnet/minecraft/loot/provider/score/LootScoreProvider;- intermediary - method_35571- Lnet/minecraft/class_5664;method_35571(Lnet/minecraft/class_47$class_50;)Lnet/minecraft/class_5670;- official - a- Lfad;a(Levs$b;)Lfag;
 
- 
getType- Specified by:
- getTypein interface- LootScoreProvider
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/loot/provider/score/LootScoreProvider;getType()Lnet/minecraft/loot/provider/score/LootScoreProviderType;- intermediary - method_32475- Lnet/minecraft/class_5670;method_32475()Lnet/minecraft/class_5669;- official - a- Lfag;a()Lfaf;
 
- 
getScoreHolder- Specified by:
- getScoreHolderin interface- LootScoreProvider
- Mappings:
- Namespace - Name - Mixin selector - named - getScoreHolder- Lnet/minecraft/loot/provider/score/LootScoreProvider;getScoreHolder(Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/scoreboard/ScoreHolder;- intermediary - method_55379- Lnet/minecraft/class_5670;method_55379(Lnet/minecraft/class_47;)Lnet/minecraft/class_9015;- official - a- Lfag;a(Levs;)Lfcf;
 
- 
getRequiredParameters- Specified by:
- getRequiredParametersin interface- LootScoreProvider
- Mappings:
- Namespace - Name - Mixin selector - named - getRequiredParameters- Lnet/minecraft/loot/provider/score/LootScoreProvider;getRequiredParameters()Ljava/util/Set;- intermediary - method_32477- Lnet/minecraft/class_5670;method_32477()Ljava/util/Set;- official - b- Lfag;b()Ljava/util/Set;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
targetReturns the value of thetargetrecord component.- Returns:
- the value of the targetrecord component
 
 
-