Package net.minecraft.loot.function
Record Class CopyComponentsLootFunction.BlockEntityComponentsSource
java.lang.Object
java.lang.Record
net.minecraft.loot.function.CopyComponentsLootFunction.BlockEntityComponentsSource
- Record Components:
contextParam-
- All Implemented Interfaces:
CopyComponentsLootFunction.ComponentsSource<BlockEntity>
- Enclosing class:
CopyComponentsLootFunction
private static record CopyComponentsLootFunction.BlockEntityComponentsSource(ContextParameter<? extends BlockEntity> contextParam)
extends Record
implements CopyComponentsLootFunction.ComponentsSource<BlockEntity>
- Mappings:
Namespace Name named net/minecraft/loot/function/CopyComponentsLootFunction$BlockEntityComponentsSourceintermediary net/minecraft/class_9317$class_12066official fjy$anamed contextParamintermediary comp_4918official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ContextParameter<? extends BlockEntity> The field for thecontextParamrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockEntityComponentsSource(ContextParameter<? extends BlockEntity> contextParameter) -
Method Summary
Modifier and TypeMethodDescriptionContextParameter<? extends BlockEntity> Returns the value of thecontextParamrecord component.final booleanIndicates whether some other object is "equal to" this one.getComponents(BlockEntity blockEntity) 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.function.CopyComponentsLootFunction.ComponentsSource
getComponents
-
Field Details
-
contextParam
The field for thecontextParamrecord component.
-
-
Constructor Details
-
BlockEntityComponentsSource
BlockEntityComponentsSource(ContextParameter<? extends BlockEntity> contextParameter)
-
-
Method Details
-
getComponents
- Specified by:
getComponentsin interfaceCopyComponentsLootFunction.ComponentsSource<BlockEntity>- Mappings:
Namespace Name Mixin selector named getComponentsLnet/minecraft/loot/function/CopyComponentsLootFunction$BlockEntityComponentsSource;getComponents(Lnet/minecraft/block/entity/BlockEntity;)Lnet/minecraft/component/ComponentsAccess;intermediary method_74904Lnet/minecraft/class_9317$class_12066;method_74904(Lnet/minecraft/class_2586;)Lnet/minecraft/class_9473;official aLfjy$a;a(Legg;)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.ComponentsSource<BlockEntity>- Returns:
- the value of the
contextParamrecord component
-