Package net.minecraft.loot.function
Record Class CopyComponentsLootFunction.class_12068
java.lang.Object
java.lang.Record
net.minecraft.loot.function.CopyComponentsLootFunction.class_12068
- Record Components:
contextParam-
- All Implemented Interfaces:
CopyComponentsLootFunction.class_12069<ItemStack>
- Enclosing class:
CopyComponentsLootFunction
private static record CopyComponentsLootFunction.class_12068(ContextParameter<? extends ItemStack> contextParam)
extends Record
implements CopyComponentsLootFunction.class_12069<ItemStack>
- Mappings:
Namespace Name named net/minecraft/loot/function/CopyComponentsLootFunction$class_12068intermediary net/minecraft/class_9317$class_12068official fjz$dnamed contextParamintermediary comp_4918official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContextParameter<? extends ItemStack> The field for thecontextParamrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionContextParameter<? extends ItemStack> 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.method_74905(ItemStack itemStack) 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.function.CopyComponentsLootFunction.class_12069
method_74908
-
Field Details
-
contextParam
The field for thecontextParamrecord component.
-
-
Constructor Details
-
class_12068
class_12068(ContextParameter<? extends ItemStack> contextParameter)
-
-
Method Details
-
method_74905
- Specified by:
method_74905in interfaceCopyComponentsLootFunction.class_12069<ItemStack>- Mappings:
Namespace Name Mixin selector named method_74905Lnet/minecraft/loot/function/CopyComponentsLootFunction$class_12068;method_74905(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/component/ComponentsAccess;intermediary method_74907Lnet/minecraft/class_9317$class_12068;method_74907(Lnet/minecraft/class_1799;)Lnet/minecraft/class_9473;official aLfjz$d;a(Ldhq;)Lkk;
-
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 interfaceCopyComponentsLootFunction.class_12069<ItemStack>- Returns:
- the value of the
contextParamrecord component
-