Package net.minecraft.loot.function
Record Class CopyComponentsLootFunction.ComponentAccessSource<T extends ComponentsAccess>
java.lang.Object
java.lang.Record
net.minecraft.loot.function.CopyComponentsLootFunction.ComponentAccessSource<T>
- Record Components:
contextParam-
- All Implemented Interfaces:
LootEntityValueSource<ComponentsAccess>,LootEntityValueSource.ContextComponentBased<T,ComponentsAccess>
- Enclosing class:
CopyComponentsLootFunction
private static record CopyComponentsLootFunction.ComponentAccessSource<T extends ComponentsAccess>(ContextParameter<? extends T extends ComponentsAccess> contextParam)
extends Record
implements LootEntityValueSource.ContextComponentBased<T,ComponentsAccess>
- Mappings:
Namespace Name named net/minecraft/loot/function/CopyComponentsLootFunction$ComponentAccessSourceintermediary net/minecraft/class_9317$class_12288official fnt$cnamed contextParamintermediary comp_4918official 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 T> The field for thecontextParamrecord component.Fields inherited from interface net.minecraft.loot.context.LootEntityValueSource
ENTITY_OR_BLOCK_ENTITY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionComponentAccessSource(ContextParameter<? extends T> contextParam) Creates an instance of aComponentAccessSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionContextParameter<? extends T> 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
-
ComponentAccessSource
ComponentAccessSource(ContextParameter<? extends T> contextParam) Creates an instance of aComponentAccessSourcerecord class.- Parameters:
contextParam- the value for thecontextParamrecord component
-
-
Method Details
-
get
- Specified by:
getin interfaceLootEntityValueSource.ContextComponentBased<T extends ComponentsAccess,ComponentsAccess> - Mappings:
Namespace Name Mixin selector named getLnet/minecraft/loot/function/CopyComponentsLootFunction$ComponentAccessSource;get(Lnet/minecraft/component/ComponentsAccess;)Lnet/minecraft/component/ComponentsAccess;intermediary method_76227Lnet/minecraft/class_9317$class_12288;method_76227(Lnet/minecraft/class_9473;)Lnet/minecraft/class_9473;official aLfnt$c;a(Lkd;)Lkd;
-
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<T extends ComponentsAccess>- Specified by:
contextParamin interfaceLootEntityValueSource.ContextComponentBased<T extends ComponentsAccess,ComponentsAccess> - Returns:
- the value of the
contextParamrecord component
-