Package wtf.choco.alchema.config
Class SimpleCauldronConfigurationContext
java.lang.Object
wtf.choco.alchema.config.SimpleCauldronConfigurationContext
- All Implemented Interfaces:
CauldronConfigurationContext
public final class SimpleCauldronConfigurationContext extends java.lang.Object implements CauldronConfigurationContext
A simple implementation of
CauldronConfigurationContext
.-
Nested Class Summary
Nested classes/interfaces inherited from interface wtf.choco.alchema.config.CauldronConfigurationContext
CauldronConfigurationContext.CauldronConfigurationContextBuilder
-
Method Summary
Modifier and Type Method Description 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.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getItemSearchInterval
public int getItemSearchInterval()Description copied from interface:CauldronConfigurationContext
Get the interval of time (in ticks) cauldrons will wait before searching for nearby items to collect them as ingredients.- Specified by:
getItemSearchInterval
in interfaceCauldronConfigurationContext
- Returns:
- the item search interval
-
getMillisecondsToHeatUp
public int getMillisecondsToHeatUp()Description copied from interface:CauldronConfigurationContext
Get the time (in milliseconds) it takes for cauldrons to heat up.- Specified by:
getMillisecondsToHeatUp
in interfaceCauldronConfigurationContext
- Returns:
- the milliseconds to heat up
-
shouldDamageEntities
public boolean shouldDamageEntities()Description copied from interface:CauldronConfigurationContext
Check whether or not cauldrons should damage entities in boiling water.- Specified by:
shouldDamageEntities
in interfaceCauldronConfigurationContext
- Returns:
- true if damage should be inflicted, false otherwise
-
getMinEssenceOnDeath
public int getMinEssenceOnDeath()Description copied from interface:CauldronConfigurationContext
Get the minimum amount of essence generated by entities killed in a cauldron.- Specified by:
getMinEssenceOnDeath
in interfaceCauldronConfigurationContext
- Returns:
- the minimum essence on death
-
getMaxEssenceOnDeath
public int getMaxEssenceOnDeath()Description copied from interface:CauldronConfigurationContext
Get the maximum amount of essence generated by entities killed in a cauldron.- Specified by:
getMaxEssenceOnDeath
in interfaceCauldronConfigurationContext
- Returns:
- the maximum essence on death
-
getAmbientBubbleVolume
public float getAmbientBubbleVolume()Description copied from interface:CauldronConfigurationContext
Get the volume at which the ambient bubbling sound will be played.- Specified by:
getAmbientBubbleVolume
in interfaceCauldronConfigurationContext
- Returns:
- the ambient bubble volume
-
getItemSplashVolume
public float getItemSplashVolume()Description copied from interface:CauldronConfigurationContext
Get the volume at which the item splash sound will be played.- Specified by:
getItemSplashVolume
in interfaceCauldronConfigurationContext
- Returns:
- the item splash volume
-
getSuccessfulCraftVolume
public float getSuccessfulCraftVolume()Description copied from interface:CauldronConfigurationContext
Get the volume at which the successful craft sound will be played.- Specified by:
getSuccessfulCraftVolume
in interfaceCauldronConfigurationContext
- Returns:
- the successful craft volume
-