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
ConstructorsConstructorDescriptionTableClothServing(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 aTableClothServingrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncustomer()Returns the value of thecustomerrecord component.booleaneat(int ticksElapsed, float eatingProgress) final booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.item.ItemStackReturns the value of theexpectedOrderStackrecord component.net.minecraft.world.item.ItemStackReturns the value of theexpectedServingStackrecord component.final inthashCode()Returns a hash code value for this object.booleanintReturns the value of theorderStackIndexrecord component.static IServingBlockEntity.Servingserve(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth, boolean simulate, net.minecraft.world.item.ItemStack stack) net.minecraft.world.item.ItemStackserving()intReturns the value of theservingStackIndexrecord component.static Stream<? extends IServingBlockEntity.Serving> stream(com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth) com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntityReturns the value of thetableClothrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aTableClothServingrecord class.- Parameters:
tableCloth- the value for thetableClothrecord componentcustomer- the value for thecustomerrecord componentorderStackIndex- the value for theorderStackIndexrecord componentexpectedOrderStack- the value for theexpectedOrderStackrecord componentservingStackIndex- the value for theservingStackIndexrecord componentexpectedServingStack- the value for theexpectedServingStackrecord 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:
isStillSatisfiedin interfaceIServingBlockEntity.Serving.Satisfied
-
serving
public net.minecraft.world.item.ItemStack serving()- Specified by:
servingin interfaceIServingBlockEntity.Serving.Satisfied
-
eat
public boolean eat(int ticksElapsed, float eatingProgress) - Specified by:
eatin interfaceIServingBlockEntity.Serving.Satisfied
-
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 '=='. -
tableCloth
public com.simibubi.create.content.logistics.tableCloth.TableClothBlockEntity tableCloth()Returns the value of thetableClothrecord component.- Returns:
- the value of the
tableClothrecord component
-
customer
Returns the value of thecustomerrecord component.- Specified by:
customerin interfaceIServingBlockEntity.Serving- Returns:
- the value of the
customerrecord component
-
orderStackIndex
public int orderStackIndex()Returns the value of theorderStackIndexrecord component.- Returns:
- the value of the
orderStackIndexrecord component
-
expectedOrderStack
public net.minecraft.world.item.ItemStack expectedOrderStack()Returns the value of theexpectedOrderStackrecord component.- Returns:
- the value of the
expectedOrderStackrecord component
-
servingStackIndex
public int servingStackIndex()Returns the value of theservingStackIndexrecord component.- Returns:
- the value of the
servingStackIndexrecord component
-
expectedServingStack
public net.minecraft.world.item.ItemStack expectedServingStack()Returns the value of theexpectedServingStackrecord component.- Returns:
- the value of the
expectedServingStackrecord component
-