Record Class CommonEvents.DefaultDataComponents.Entry
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.core.CommonEvents.DefaultDataComponents.Entry
- Enclosing class:
CommonEvents.DefaultDataComponents
public static record CommonEvents.DefaultDataComponents.Entry(org.apache.logging.log4j.util.TriConsumer<net.minecraft.world.item.Item, net.minecraft.core.component.DataComponentMap.Builder, net.minecraft.core.HolderLookup.Provider> modifier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(org.apache.logging.log4j.util.TriConsumer<net.minecraft.world.item.Item, net.minecraft.core.component.DataComponentMap.Builder, net.minecraft.core.HolderLookup.Provider> modifier) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.logging.log4j.util.TriConsumer<net.minecraft.world.item.Item, net.minecraft.core.component.DataComponentMap.Builder, net.minecraft.core.HolderLookup.Provider> modifier()Returns the value of themodifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
public Entry(org.apache.logging.log4j.util.TriConsumer<net.minecraft.world.item.Item, net.minecraft.core.component.DataComponentMap.Builder, net.minecraft.core.HolderLookup.Provider> modifier) Creates an instance of aEntryrecord class.- Parameters:
modifier- the value for themodifierrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
modifier
public org.apache.logging.log4j.util.TriConsumer<net.minecraft.world.item.Item, net.minecraft.core.component.DataComponentMap.Builder, net.minecraft.core.HolderLookup.Provider> modifier()Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-