Package net.minecraft.loot.provider.nbt
Record Class ContextLootNbtProvider.EntityTarget
java.lang.Object
java.lang.Record
net.minecraft.loot.provider.nbt.ContextLootNbtProvider.EntityTarget
- Record Components:
contextParam-
- All Implemented Interfaces:
LootEntityValueSource<NbtElement>,LootEntityValueSource.ContextComponentBased<Entity,NbtElement>
- Enclosing class:
ContextLootNbtProvider
private static record ContextLootNbtProvider.EntityTarget(ContextParameter<? extends Entity> contextParam)
extends Record
implements LootEntityValueSource.ContextComponentBased<Entity,NbtElement>
- Mappings:
Namespace Name named net/minecraft/loot/provider/nbt/ContextLootNbtProvider$EntityTargetintermediary net/minecraft/class_5646$class_12072official fqq$bnamed contextParamintermediary comp_4920official a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.loot.context.LootEntityValueSource
LootEntityValueSource.Builder<R>, LootEntityValueSource.ContextBased<T>, LootEntityValueSource.ContextComponentBased<T,R> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContextParameter<? extends Entity> The field for thecontextParamrecord component.Fields inherited from interface net.minecraft.loot.context.LootEntityValueSource
ENTITY_OR_BLOCK_ENTITY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionEntityTarget(ContextParameter<? extends Entity> contextParam) Creates an instance of aEntityTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionContextParameter<? extends Entity> Returns the value of thecontextParamrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.loot.context.LootEntityValueSource.ContextComponentBased
get
-
Field Details
-
contextParam
The field for thecontextParamrecord component.
-
-
Constructor Details
-
EntityTarget
EntityTarget(ContextParameter<? extends Entity> contextParam) Creates an instance of aEntityTargetrecord class.- Parameters:
contextParam- the value for thecontextParamrecord component
-
-
Method Details
-
get
- Specified by:
getin interfaceLootEntityValueSource.ContextComponentBased<Entity,NbtElement> - Mappings:
Namespace Name Mixin selector named getLnet/minecraft/loot/provider/nbt/ContextLootNbtProvider$EntityTarget;get(Lnet/minecraft/entity/Entity;)Lnet/minecraft/nbt/NbtElement;intermediary method_74911Lnet/minecraft/class_5646$class_12072;method_74911(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2520;official aLfqq$b;a(Lcgi;)Lvz;
-
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). -
contextParam
Returns the value of thecontextParamrecord component.- Specified by:
contextParamin interfaceLootEntityValueSource<NbtElement>- Specified by:
contextParamin interfaceLootEntityValueSource.ContextComponentBased<Entity,NbtElement> - Returns:
- the value of the
contextParamrecord component
-