Record Class PotatoRefineryBlockEntity.LubricationRecipe

java.lang.Object
java.lang.Record
net.minecraft.block.entity.PotatoRefineryBlockEntity.LubricationRecipe
Record Components:
itemStack -
result -
All Implemented Interfaces:
PotatoRefineryBlockEntity.Recipe
Enclosing class:
PotatoRefineryBlockEntity

private static record PotatoRefineryBlockEntity.LubricationRecipe(ItemStack itemStack, ItemStack result) extends Record implements PotatoRefineryBlockEntity.Recipe
Mappings:
Namespace Name
official drl$a
intermediary net/minecraft/class_9578$class_9579
named net/minecraft/block/entity/PotatoRefineryBlockEntity$LubricationRecipe
official a
intermediary comp_2590
named itemStack
official b
intermediary comp_2591
named result
  • Field Details

    • itemStack

      private final ItemStack itemStack
      The field for the itemStack record component.
    • result

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

  • Method Details

    • craft

      public ItemStack craft(DynamicRegistryManager registryManager)
      Specified by:
      craft in interface PotatoRefineryBlockEntity.Recipe
      Mappings:
      Namespace Name Mixin selector
      official a Ldrl$d;a(Ljo;)Lcuh;
      intermediary method_59209 Lnet/minecraft/class_9578$class_9582;method_59209(Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;
      named craft Lnet/minecraft/block/entity/PotatoRefineryBlockEntity$Recipe;craft(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
    • getRefinementTIme

      public int getRefinementTIme()
      Specified by:
      getRefinementTIme in interface PotatoRefineryBlockEntity.Recipe
      Mappings:
      Namespace Name Mixin selector
      official a Ldrl$d;a()I
      intermediary method_59208 Lnet/minecraft/class_9578$class_9582;method_59208()I
      named getRefinementTIme Lnet/minecraft/block/entity/PotatoRefineryBlockEntity$Recipe;getRefinementTIme()I
    • 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.
    • itemStack

      public ItemStack itemStack()
      Returns the value of the itemStack record component.
      Returns:
      the value of the itemStack record component
    • result

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