Package com.hbm_m.recipe
Record Class CrucibleSmeltingRecipes.SmeltingEntry
java.lang.Object
java.lang.Record
com.hbm_m.recipe.CrucibleSmeltingRecipes.SmeltingEntry
- Enclosing class:
- CrucibleSmeltingRecipes
public static record CrucibleSmeltingRecipes.SmeltingEntry(net.minecraft.world.item.crafting.Ingredient input, MaterialType output, int amountMb)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSmeltingEntry(net.minecraft.world.item.crafting.Ingredient input, MaterialType output, int amountMb) Creates an instance of aSmeltingEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintamountMb()Returns the value of theamountMbrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.crafting.Ingredientinput()Returns the value of theinputrecord component.output()Returns the value of theoutputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SmeltingEntry
public SmeltingEntry(net.minecraft.world.item.crafting.Ingredient input, MaterialType output, int amountMb) Creates an instance of aSmeltingEntryrecord class.- Parameters:
input- the value for theinputrecord componentoutput- the value for theoutputrecord componentamountMb- the value for theamountMbrecord 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 '=='. -
input
public net.minecraft.world.item.crafting.Ingredient input()Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
amountMb
public int amountMb()Returns the value of theamountMbrecord component.- Returns:
- the value of the
amountMbrecord component
-