Package net.minecraft.block.entity
Record Class PotatoRefineryBlockEntity.RecipeContext
java.lang.Object
java.lang.Record
net.minecraft.block.entity.PotatoRefineryBlockEntity.RecipeContext
- Record Components:
level-inputStack-bottleInputStack-
- Enclosing class:
PotatoRefineryBlockEntity
private static record PotatoRefineryBlockEntity.RecipeContext(World level, ItemStack inputStack, ItemStack bottleInputStack)
extends Record
- Mappings:
Namespace Name official drl$cintermediary net/minecraft/class_9578$class_9581named net/minecraft/block/entity/PotatoRefineryBlockEntity$RecipeContextofficial aintermediary comp_2593named levelofficial bintermediary comp_2594named inputStackofficial cintermediary comp_2595named bottleInputStack
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemStackThe field for thebottleInputStackrecord component.private final ItemStackThe field for theinputStackrecord component.private final WorldThe field for thelevelrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottleInputStackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputStackrecord component.level()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
level
The field for thelevelrecord component. -
inputStack
The field for theinputStackrecord component. -
bottleInputStack
The field for thebottleInputStackrecord component.
-
-
Constructor Details
-
RecipeContext
-
-
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 withObjects::equals(Object,Object). -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
inputStack
Returns the value of theinputStackrecord component.- Returns:
- the value of the
inputStackrecord component
-
bottleInputStack
Returns the value of thebottleInputStackrecord component.- Returns:
- the value of the
bottleInputStackrecord component
-