Interface IHappinessSupplierWrapper

All Superinterfaces:
net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
All Known Implementing Classes:
DynamicHappinessSupplier, StaticHappinessSupplier

public interface IHappinessSupplierWrapper extends net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Wrapper to deal with happiness suppliers.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Get the last cache value in absence of the citizen.
    double
    getValue(ICitizenData citizenData)
    Get the matching value.

    Methods inherited from interface net.neoforged.neoforge.common.util.INBTSerializable

    deserializeNBT, serializeNBT
  • Method Details

    • getValue

      double getValue(ICitizenData citizenData)
      Get the matching value.
      Parameters:
      citizenData - the context.
      Returns:
      the value.
    • getLastCachedValue

      double getLastCachedValue()
      Get the last cache value in absence of the citizen.
      Returns:
      the last cached value.