Class FabricConfigHelper
java.lang.Object
de.cech12.woodenbucket.platform.FabricConfigHelper
- All Implemented Interfaces:
IConfigHelper, me.shedaniel.autoconfig.ConfigData
public class FabricConfigHelper
extends Object
implements me.shedaniel.autoconfig.ConfigData, IConfigHelper
The config service implementation for Fabric.
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.shedaniel.autoconfig.ConfigData
me.shedaniel.autoconfig.ConfigData.ValidationException -
Field Summary
FieldsModifier and TypeFieldDescriptionlonglonglongbooleanlongbooleanFields inherited from interface IConfigHelper
BREAK_TEMPERATURE_DEFAULT, BREAK_TEMPERATURE_DESCRIPTION, BREAK_TEMPERATURE_MAX, BREAK_TEMPERATURE_MIN, BURNING_TEMPERATURE_DEFAULT, BURNING_TEMPERATURE_DESCRIPTION, BURNING_TEMPERATURE_MAX, BURNING_TEMPERATURE_MIN, DURABILITY_DEFAULT, DURABILITY_DESCRIPTION, DURABILITY_MAX, DURABILITY_MIN, FISH_OBTAINING_ENABLED_DEFAULT, FISH_OBTAINING_ENABLED_DESCRIPTION, FREEZING_TEMPERATURE_DEFAULT, FREEZING_TEMPERATURE_DESCRIPTION, FREEZING_TEMPERATURE_MAX, FREEZING_TEMPERATURE_MIN, MILKING_ENABLED_DEFAULT, MILKING_ENABLED_DESCRIPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the configured break temperature value.intGets the configured burning temperature value.intGets the configured durability value.intGets the configured freezing temperature value.voidinit()Initialization method for the Service implementations.booleanGets the fish obtaining enabled value.booleanGets the configured milking enabled value.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.shedaniel.autoconfig.ConfigData
validatePostLoad
-
Field Details
-
BREAK_TEMPERATURE
public long BREAK_TEMPERATURE -
BURNING_TEMPERATURE
public long BURNING_TEMPERATURE -
DURABILITY
public long DURABILITY -
FISH_OBTAINING_ENABLED
public boolean FISH_OBTAINING_ENABLED -
FREEZING_TEMPERATURE
public long FREEZING_TEMPERATURE -
MILKING_ENABLED
public boolean MILKING_ENABLED
-
-
Constructor Details
-
FabricConfigHelper
public FabricConfigHelper()
-
-
Method Details
-
init
public void init()Description copied from interface:IConfigHelperInitialization method for the Service implementations.- Specified by:
initin interfaceIConfigHelper
-
getBreakTemperature
public int getBreakTemperature()Description copied from interface:IConfigHelperGets the configured break temperature value.- Specified by:
getBreakTemperaturein interfaceIConfigHelper- Returns:
- configured break temperature value
-
getBurningTemperature
public int getBurningTemperature()Description copied from interface:IConfigHelperGets the configured burning temperature value.- Specified by:
getBurningTemperaturein interfaceIConfigHelper- Returns:
- configured burning temperature value
-
getDurability
public int getDurability()Description copied from interface:IConfigHelperGets the configured durability value.- Specified by:
getDurabilityin interfaceIConfigHelper- Returns:
- configured durability value
-
isFishObtainingEnabled
public boolean isFishObtainingEnabled()Description copied from interface:IConfigHelperGets the fish obtaining enabled value.- Specified by:
isFishObtainingEnabledin interfaceIConfigHelper- Returns:
- configured fish obtaining enabled value
-
getFreezingTemperature
public int getFreezingTemperature()Description copied from interface:IConfigHelperGets the configured freezing temperature value.- Specified by:
getFreezingTemperaturein interfaceIConfigHelper- Returns:
- configured freezing temperature value
-
isMilkingEnabled
public boolean isMilkingEnabled()Description copied from interface:IConfigHelperGets the configured milking enabled value.- Specified by:
isMilkingEnabledin interfaceIConfigHelper- Returns:
- configured milking enabled value
-