Interface IConfigHelper
- All Known Implementing Classes:
NeoForgeConfigHelper
public interface IConfigHelper
Common configuration helper service interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value of break temperaturestatic final StringConfig description of the break temperaturestatic final intMaximal value of the break temperaturestatic final intMinimal value of the break temperaturestatic final intDefault value of durabilitystatic final StringConfig description of the durabilitystatic final intMaximal value of the durabilitystatic final intMinimal value of the durabilitystatic final booleanDefault value of fish obtaining optionstatic final StringConfig description of the durabilitystatic final booleanDefault value of milking optionstatic final StringConfig description of the milking option -
Method Summary
Modifier and TypeMethodDescriptionintGets the configured break temperature value.intGets the configured durability value.voidinit()Initialization method for the Service implementations.booleanGets the fish obtaining enabled value.booleanGets the configured milking enabled value.
-
Field Details
-
BREAK_TEMPERATURE_DEFAULT
static final int BREAK_TEMPERATURE_DEFAULTDefault value of break temperature- See Also:
-
BREAK_TEMPERATURE_DESCRIPTION
Config description of the break temperature- See Also:
-
BREAK_TEMPERATURE_MIN
static final int BREAK_TEMPERATURE_MINMinimal value of the break temperature- See Also:
-
BREAK_TEMPERATURE_MAX
static final int BREAK_TEMPERATURE_MAXMaximal value of the break temperature- See Also:
-
DURABILITY_DEFAULT
static final int DURABILITY_DEFAULTDefault value of durability- See Also:
-
DURABILITY_DESCRIPTION
-
DURABILITY_MIN
static final int DURABILITY_MINMinimal value of the durability- See Also:
-
DURABILITY_MAX
static final int DURABILITY_MAXMaximal value of the durability- See Also:
-
FISH_OBTAINING_ENABLED_DEFAULT
static final boolean FISH_OBTAINING_ENABLED_DEFAULTDefault value of fish obtaining option- See Also:
-
FISH_OBTAINING_ENABLED_DESCRIPTION
Config description of the durability- See Also:
-
MILKING_ENABLED_DEFAULT
static final boolean MILKING_ENABLED_DEFAULTDefault value of milking option- See Also:
-
MILKING_ENABLED_DESCRIPTION
-
-
Method Details
-
init
void init()Initialization method for the Service implementations. -
getBreakTemperature
int getBreakTemperature()Gets the configured break temperature value.- Returns:
- configured break temperature value
-
getDurability
int getDurability()Gets the configured durability value.- Returns:
- configured durability value
-
isFishObtainingEnabled
boolean isFishObtainingEnabled()Gets the fish obtaining enabled value.- Returns:
- configured fish obtaining enabled value
-
isMilkingEnabled
boolean isMilkingEnabled()Gets the configured milking enabled value.- Returns:
- configured milking enabled value
-