Package com.wdiscute.sellingbin.registry
Record Class SBDataMaps.ItemValue
java.lang.Object
java.lang.Record
com.wdiscute.sellingbin.registry.SBDataMaps.ItemValue
- Enclosing interface:
- SBDataMaps
public static record SBDataMaps.ItemValue(int baseValue, List<AbstractProcessor> processors)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SBDataMaps.ItemValue>static final SBDataMaps.ItemValue -
Constructor Summary
ConstructorsConstructorDescriptionItemValue(int baseValue, List<AbstractProcessor> processors) Creates an instance of aItemValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebaseValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprocessorsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
EMPTY
-
-
Constructor Details
-
ItemValue
Creates an instance of aItemValuerecord class.- Parameters:
baseValue- the value for thebaseValuerecord componentprocessors- the value for theprocessorsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
baseValue
public int baseValue()Returns the value of thebaseValuerecord component.- Returns:
- the value of the
baseValuerecord component
-
processors
Returns the value of theprocessorsrecord component.- Returns:
- the value of the
processorsrecord component
-