Interface IHappinessSupplierWrapper
- All Superinterfaces:
net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- All Known Implementing Classes:
DynamicHappinessSupplier,StaticHappinessSupplier
public interface IHappinessSupplierWrapper
extends net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Wrapper to deal with happiness suppliers.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the last cache value in absence of the citizen.doublegetValue(ICitizenData citizenData) Get the matching value.Methods inherited from interface net.minecraftforge.common.util.INBTSerializable
deserializeNBT, serializeNBT
-
Method Details
-
getValue
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.
-