Class AbstractCustomer
java.lang.Object
petrolpark.mc.library.core.world.restaurant.customer.AbstractCustomer
- All Implemented Interfaces:
net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>,ICustomer
- Direct Known Subclasses:
MobCustomer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected IRestaurantOrderprotected net.minecraft.core.Holder<Restaurant> Fields inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer
INFINITE_ORDER_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeserializeNBT(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.nbt.CompoundTag nbt) intnet.minecraft.core.Holder<Restaurant> net.minecraft.nbt.CompoundTagserializeNBT(net.minecraft.core.HolderLookup.Provider provider) voidtick()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer
getName, supplyLootParams
-
Field Details
-
elapsedOrderTime
protected int elapsedOrderTime -
openOrder
-
restaurant
-
-
Constructor Details
-
AbstractCustomer
public AbstractCustomer()
-
-
Method Details
-
getElapsedOrderTime
public int getElapsedOrderTime()- Specified by:
getElapsedOrderTimein interfaceICustomer
-
getOpenOrder
- Specified by:
getOpenOrderin interfaceICustomer
-
getRestaurant
- Specified by:
getRestaurantin interfaceICustomer
-
clearOpenOrder
public void clearOpenOrder()- Specified by:
clearOpenOrderin interfaceICustomer
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT(@Nonnull net.minecraft.core.HolderLookup.Provider provider) - Specified by:
serializeNBTin interfacenet.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
deserializeNBT
public void deserializeNBT(@Nonnull net.minecraft.core.HolderLookup.Provider provider, @Nonnull net.minecraft.nbt.CompoundTag nbt) - Specified by:
deserializeNBTin interfacenet.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
tick
public void tick()
-