Class AbstractCustomer
java.lang.Object
com.petrolpark.core.shop.customer.AbstractCustomer
- All Implemented Interfaces:
ICustomer,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Direct Known Subclasses:
EntityCustomer
-
Field Summary
FieldsFields inherited from interface com.petrolpark.core.shop.customer.ICustomer
INFINITE_ORDER_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeserializeNBT(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.nbt.CompoundTag nbt) intintgetShop()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 com.petrolpark.core.shop.customer.ICustomer
getName, supplyLootParams
-
Field Details
-
orderTime
public int orderTime -
elapsedOrderTime
protected int elapsedOrderTime -
openOffer
-
shop
-
-
Constructor Details
-
AbstractCustomer
public AbstractCustomer()
-
-
Method Details
-
getOrderTime
public int getOrderTime()- Specified by:
getOrderTimein interfaceICustomer
-
getElapsedOrderTime
public int getElapsedOrderTime()- Specified by:
getElapsedOrderTimein interfaceICustomer
-
getOpenOffer
- Specified by:
getOpenOfferin interfaceICustomer
-
getShop
-
clearOpenOffer
public void clearOpenOffer()- Specified by:
clearOpenOfferin 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()
-