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$c
intermediary net/minecraft/class_9578$class_9581
named net/minecraft/block/entity/PotatoRefineryBlockEntity$RecipeContext
official a
intermediary comp_2593
named level
official b
intermediary comp_2594
named inputStack
official c
intermediary comp_2595
named bottleInputStack
  • Field Details

    • level

      private final World level
      The field for the level record component.
    • inputStack

      private final ItemStack inputStack
      The field for the inputStack record component.
    • bottleInputStack

      private final ItemStack bottleInputStack
      The field for the bottleInputStack record component.
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • level

      public World level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • inputStack

      public ItemStack inputStack()
      Returns the value of the inputStack record component.
      Returns:
      the value of the inputStack record component
    • bottleInputStack

      public ItemStack bottleInputStack()
      Returns the value of the bottleInputStack record component.
      Returns:
      the value of the bottleInputStack record component