Record Class RecipeSchemaData.MergeData
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.schema.RecipeSchemaData.MergeData
- Enclosing class:
RecipeSchemaData
public static record RecipeSchemaData.MergeData(boolean keys, boolean constructors, boolean unique, boolean postProcessors)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<RecipeSchemaData.MergeData> static final RecipeSchemaData.MergeData -
Constructor Summary
ConstructorsConstructorDescriptionMergeData(boolean keys, boolean constructors, boolean unique, boolean postProcessors) Creates an instance of aMergeDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconstructorsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleankeys()Returns the value of thekeysrecord component.booleanReturns the value of thepostProcessorsrecord component.final StringtoString()Returns a string representation of this record class.booleanunique()Returns the value of theuniquerecord component.
-
Field Details
-
DEFAULT
-
CODEC
-
-
Constructor Details
-
MergeData
public MergeData(boolean keys, boolean constructors, boolean unique, boolean postProcessors) Creates an instance of aMergeDatarecord class.- Parameters:
keys- the value for thekeysrecord componentconstructors- the value for theconstructorsrecord componentunique- the value for theuniquerecord componentpostProcessors- the value for thepostProcessorsrecord 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. All components in this record class are compared with '=='. -
keys
public boolean keys()Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-
constructors
public boolean constructors()Returns the value of theconstructorsrecord component.- Returns:
- the value of the
constructorsrecord component
-
unique
public boolean unique()Returns the value of theuniquerecord component.- Returns:
- the value of the
uniquerecord component
-
postProcessors
public boolean postProcessors()Returns the value of thepostProcessorsrecord component.- Returns:
- the value of the
postProcessorsrecord component
-