Record Class ItemMapper
java.lang.Object
java.lang.Record
generation.builders.ItemMapper
- All Implemented Interfaces:
Writeable
public record ItemMapper(String name, RecipeMapperBuilder[] elements)
extends Record
implements Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface generation.builders.Writeable
Writeable.ListProperty<T>, Writeable.Property<T>, Writeable.WriteableProperty<T>
-
Constructor Summary
ConstructorsConstructorDescriptionItemMapper
(String name, RecipeMapperBuilder... elements) Creates an instance of aItemMapper
record class. -
Method Summary
Modifier and TypeMethodDescriptionelements()
Returns the value of theelements
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.void
Methods inherited from interface generation.builders.Writeable
formatFloat, fromArray, indent, stream, writeBlockEnd, writeBlockStart, writeKeyValue, writeProperties, writeValue
-
Constructor Details
-
ItemMapper
Creates an instance of aItemMapper
record class.- Parameters:
name
- the value for thename
record componentelements
- the value for theelements
record component
-
-
Method Details
-
write
- Specified by:
write
in interfaceWriteable
- Throws:
IOException
-
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
elements
Returns the value of theelements
record component.- Returns:
- the value of the
elements
record component
-