Record Class LootInjections.Modifier
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.LootInjections.Modifier
- Enclosing class:
LootInjections
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootInjections.Modifier> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.HolderSet<net.minecraft.world.item.Item> items()Returns the value of theitemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Modifier
Creates an instance of aModifierrecord class.- Parameters:
items- the value for theitemsrecord componententry- the value for theentryrecord 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). -
items
public net.minecraft.core.HolderSet<net.minecraft.world.item.Item> items()Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-