Class HappinessRegistry.HappinessFunctionEntry
java.lang.Object
com.minecolonies.api.entity.citizen.happiness.HappinessRegistry.HappinessFunctionEntry
- Enclosing class:
HappinessRegistry
Happiness Factor type.
-
Constructor Summary
ConstructorsConstructorDescriptionHappinessFunctionEntry(Function<ICitizenData, Double> doubleSupplier) Create a new entry type. -
Method Summary
Modifier and TypeMethodDescriptionGet the double supplier.
-
Constructor Details
-
HappinessFunctionEntry
Create a new entry type.- Parameters:
doubleSupplier- th
-
-
Method Details
-
getDoubleSupplier
Get the double supplier.- Returns:
- the function.
-