Package wtf.choco.alchema.config
Interface CauldronConfigurationContext
- All Known Implementing Classes:
SimpleCauldronConfigurationContext
public interface CauldronConfigurationContext
Represents a collection of configurable values for alchemical cauldrons.
- Author:
- Parker Hawke - Choco
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CauldronConfigurationContext.CauldronConfigurationContextBuilder
A class to construct instances ofCauldronConfigurationContext
. -
Method Summary
Modifier and Type Method Description static @NotNull CauldronConfigurationContext.CauldronConfigurationContextBuilder
builder()
Get a new builder instance to construct an instance ofCauldronConfigurationContext
.float
getAmbientBubbleVolume()
Get the volume at which the ambient bubbling sound will be played.int
getItemSearchInterval()
Get the interval of time (in ticks) cauldrons will wait before searching for nearby items to collect them as ingredients.float
getItemSplashVolume()
Get the volume at which the item splash sound will be played.int
getMaxEssenceOnDeath()
Get the maximum amount of essence generated by entities killed in a cauldron.int
getMillisecondsToHeatUp()
Get the time (in milliseconds) it takes for cauldrons to heat up.int
getMinEssenceOnDeath()
Get the minimum amount of essence generated by entities killed in a cauldron.float
getSuccessfulCraftVolume()
Get the volume at which the successful craft sound will be played.boolean
shouldDamageEntities()
Check whether or not cauldrons should damage entities in boiling water.
-
Method Details
-
getItemSearchInterval
int getItemSearchInterval()Get the interval of time (in ticks) cauldrons will wait before searching for nearby items to collect them as ingredients.- Returns:
- the item search interval
-
getMillisecondsToHeatUp
int getMillisecondsToHeatUp()Get the time (in milliseconds) it takes for cauldrons to heat up.- Returns:
- the milliseconds to heat up
-
shouldDamageEntities
boolean shouldDamageEntities()Check whether or not cauldrons should damage entities in boiling water.- Returns:
- true if damage should be inflicted, false otherwise
-
getMinEssenceOnDeath
int getMinEssenceOnDeath()Get the minimum amount of essence generated by entities killed in a cauldron.- Returns:
- the minimum essence on death
-
getMaxEssenceOnDeath
int getMaxEssenceOnDeath()Get the maximum amount of essence generated by entities killed in a cauldron.- Returns:
- the maximum essence on death
-
getAmbientBubbleVolume
float getAmbientBubbleVolume()Get the volume at which the ambient bubbling sound will be played.- Returns:
- the ambient bubble volume
-
getItemSplashVolume
float getItemSplashVolume()Get the volume at which the item splash sound will be played.- Returns:
- the item splash volume
-
getSuccessfulCraftVolume
float getSuccessfulCraftVolume()Get the volume at which the successful craft sound will be played.- Returns:
- the successful craft volume
-
builder
Get a new builder instance to construct an instance ofCauldronConfigurationContext
.- Returns:
- a context builder
-