Record Class BrewingProvider.ContainerTransformation
java.lang.Object
java.lang.Record
net.minecraft.data.recipes.BrewingProvider.ContainerTransformation
- Enclosing class:
BrewingProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateContainerTransformation(Item container, Item reagent, Item output) Creates an instance of aContainerTransformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.output()Returns the value of theoutputrecord component.reagent()Returns the value of thereagentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
container
The field for thecontainerrecord component. -
reagent
The field for thereagentrecord component. -
output
The field for theoutputrecord component.
-
-
Constructor Details
-
ContainerTransformation
Creates an instance of aContainerTransformationrecord class.- Parameters:
container- the value for thecontainerrecord componentreagent- the value for thereagentrecord componentoutput- the value for theoutputrecord 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). -
container
Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-
reagent
Returns the value of thereagentrecord component.- Returns:
- the value of the
reagentrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-