Class AbstractCustomer
java.lang.Object
petrolpark.mc.library.core.world.restaurant.customer.AbstractCustomer
- All Implemented Interfaces:
ICustomer
- Direct Known Subclasses:
MobCustomer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAbstractCustomer.Factory<C extends AbstractCustomer>Nested classes/interfaces inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer
ICustomer.Provider, ICustomer.ProviderType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IRestaurantOrderprotected final longprotected final net.minecraft.core.Holder<Restaurant> protected final ITeam.Provider -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCustomer(net.minecraft.core.Holder<Restaurant> restaurant, ITeam.Provider teamProvider, IRestaurantOrder order, long orderTime) -
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends AbstractCustomer>
CdeserializeNBT(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag nbt, AbstractCustomer.Factory<C> factory) getOrder()longnet.minecraft.core.Holder<Restaurant> booleanisNone()static <C extends AbstractCustomer>
CreadBuffer(net.minecraft.network.RegistryFriendlyByteBuf buffer, AbstractCustomer.Factory<C> factory) net.minecraft.nbt.CompoundTagserializeNBT(net.minecraft.core.HolderLookup.Provider registries) voidwriteBuffer(net.minecraft.network.RegistryFriendlyByteBuf buffer) 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
cancelOrder, getDescription, getName, getPosition, getProvider, supplyLootParams, tickWhileOrderItemHeld
-
Field Details
-
restaurant
-
teamProvider
-
order
-
orderTime
protected final long orderTime
-
-
Constructor Details
-
AbstractCustomer
public AbstractCustomer(net.minecraft.core.Holder<Restaurant> restaurant, ITeam.Provider teamProvider, IRestaurantOrder order, long orderTime)
-
-
Method Details
-
isNone
public boolean isNone() -
getRestaurant
- Specified by:
getRestaurantin interfaceICustomer
-
getTeamProvider
- Specified by:
getTeamProviderin interfaceICustomer
-
getOrder
-
getOrderTime
public long getOrderTime()- Specified by:
getOrderTimein interfaceICustomer
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT(net.minecraft.core.HolderLookup.Provider registries) throws IllegalStateException - Throws:
IllegalStateException
-
deserializeNBT
public static <C extends AbstractCustomer> C deserializeNBT(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag nbt, AbstractCustomer.Factory<C> factory) throws IllegalStateException - Throws:
IllegalStateException
-
writeBuffer
public void writeBuffer(net.minecraft.network.RegistryFriendlyByteBuf buffer) -
readBuffer
public static <C extends AbstractCustomer> C readBuffer(net.minecraft.network.RegistryFriendlyByteBuf buffer, AbstractCustomer.Factory<C> factory)
-