Class AbstractCustomer

java.lang.Object
com.petrolpark.shop.customer.AbstractCustomer
All Implemented Interfaces:
ICustomer, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Direct Known Subclasses:
EntityCustomer

public abstract class AbstractCustomer extends Object implements ICustomer, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
  • Field Details

    • orderTime

      public int orderTime
    • elapsedOrderTime

      protected int elapsedOrderTime
    • openOffer

      protected ShopOffer openOffer
    • shop

      protected Shop shop
  • Constructor Details

    • AbstractCustomer

      public AbstractCustomer()
  • Method Details

    • getOrderTime

      public int getOrderTime()
      Specified by:
      getOrderTime in interface ICustomer
    • getElapsedOrderTime

      public int getElapsedOrderTime()
      Specified by:
      getElapsedOrderTime in interface ICustomer
    • getOpenOffer

      public ShopOffer getOpenOffer()
      Specified by:
      getOpenOffer in interface ICustomer
    • getShop

      public Shop getShop()
      Specified by:
      getShop in interface ICustomer
    • clearOpenOffer

      public void clearOpenOffer()
      Specified by:
      clearOpenOffer in interface ICustomer
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT()
      Specified by:
      serializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
    • deserializeNBT

      public void deserializeNBT(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      deserializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
    • tick

      public void tick()