Record Class TableClothServing

java.lang.Object
java.lang.Record
petrolpark.mc.library.core.world.restaurant.serving.TableClothServing
All Implemented Interfaces:
IServingBlockEntity.Serving, IServingBlockEntity.Serving.Satisfied

public record TableClothServing(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth, ICustomer customer, int orderStackIndex, net.minecraft.world.item.ItemStack expectedOrderStack, int servingStackIndex, net.minecraft.world.item.ItemStack expectedServingStack) extends Record implements IServingBlockEntity.Serving.Satisfied
  • Nested Class Summary

    Nested classes/interfaces inherited from interface petrolpark.mc.library.core.world.restaurant.serving.IServingBlockEntity.Serving

    IServingBlockEntity.Serving.Satisfied, IServingBlockEntity.Serving.Unsatisfied
  • Constructor Summary

    Constructors
    Constructor
    Description
    TableClothServing(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth, ICustomer customer, int orderStackIndex, net.minecraft.world.item.ItemStack expectedOrderStack, int servingStackIndex, net.minecraft.world.item.ItemStack expectedServingStack)
    Creates an instance of a TableClothServing record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the customer record component.
    boolean
    eat(int ticksElapsed, float eatingProgress)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.world.item.ItemStack
    Returns the value of the expectedOrderStack record component.
    net.minecraft.world.item.ItemStack
    Returns the value of the expectedServingStack record component.
    final int
    Returns a hash code value for this object.
    boolean
     
    int
    Returns the value of the orderStackIndex record component.
    serve(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth, boolean simulate, net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.ItemStack
     
    int
    Returns the value of the servingStackIndex record component.
    stream(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth)
     
    com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity
    Returns the value of the tableCloth record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TableClothServing

      public TableClothServing(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth, ICustomer customer, int orderStackIndex, net.minecraft.world.item.ItemStack expectedOrderStack, int servingStackIndex, net.minecraft.world.item.ItemStack expectedServingStack)
      Creates an instance of a TableClothServing record class.
      Parameters:
      tableCloth - the value for the tableCloth record component
      customer - the value for the customer record component
      orderStackIndex - the value for the orderStackIndex record component
      expectedOrderStack - the value for the expectedOrderStack record component
      servingStackIndex - the value for the servingStackIndex record component
      expectedServingStack - the value for the expectedServingStack record component
  • Method Details

    • stream

      public static Stream<? extends IServingBlockEntity.Serving> stream(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth)
    • serve

      @Nullable public static IServingBlockEntity.Serving serve(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth, boolean simulate, net.minecraft.world.item.ItemStack stack)
    • isStillSatisfied

      public boolean isStillSatisfied()
      Specified by:
      isStillSatisfied in interface IServingBlockEntity.Serving.Satisfied
    • serving

      public net.minecraft.world.item.ItemStack serving()
      Specified by:
      serving in interface IServingBlockEntity.Serving.Satisfied
    • eat

      public boolean eat(int ticksElapsed, float eatingProgress)
      Specified by:
      eat in interface IServingBlockEntity.Serving.Satisfied
    • 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 o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • tableCloth

      public com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth()
      Returns the value of the tableCloth record component.
      Returns:
      the value of the tableCloth record component
    • customer

      public ICustomer customer()
      Returns the value of the customer record component.
      Specified by:
      customer in interface IServingBlockEntity.Serving
      Returns:
      the value of the customer record component
    • orderStackIndex

      public int orderStackIndex()
      Returns the value of the orderStackIndex record component.
      Returns:
      the value of the orderStackIndex record component
    • expectedOrderStack

      public net.minecraft.world.item.ItemStack expectedOrderStack()
      Returns the value of the expectedOrderStack record component.
      Returns:
      the value of the expectedOrderStack record component
    • servingStackIndex

      public int servingStackIndex()
      Returns the value of the servingStackIndex record component.
      Returns:
      the value of the servingStackIndex record component
    • expectedServingStack

      public net.minecraft.world.item.ItemStack expectedServingStack()
      Returns the value of the expectedServingStack record component.
      Returns:
      the value of the expectedServingStack record component