Record Class RecipeMapperBuilder
java.lang.Object
java.lang.Record
generation.builders.RecipeMapperBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface generation.builders.Writeable
Writeable.ListProperty<T>, Writeable.Property<T>, Writeable.WriteableProperty<T> -
Constructor Summary
ConstructorsConstructorDescriptionRecipeMapperBuilder(String inputItem, ItemKey outputItem) Creates an instance of aRecipeMapperBuilderrecord 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.Returns the value of theinputItemrecord component.static RecipeMapperBuilderitemMapper(List<ItemKey> list, ItemKey itemKey) static RecipeMapperBuilderitemMapperDefault(ItemKey itemKey) Returns the value of theoutputItemrecord component.final StringtoString()Returns a string representation of this record class.voidMethods inherited from interface generation.builders.Writeable
formatFloat, fromArray, indent, stream, writeBlockEnd, writeBlockStart, writeKeyValue, writeProperties, writeValue
-
Constructor Details
-
RecipeMapperBuilder
-
-
Method Details
-
itemMapper
-
itemMapperDefault
-
write
- Specified by:
writein 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). -
inputItem
Returns the value of theinputItemrecord component.- Returns:
- the value of the
inputItemrecord component
-
outputItem
Returns the value of theoutputItemrecord component.- Returns:
- the value of the
outputItemrecord component
-