Class FabricConfigHelper
java.lang.Object
de.cech12.ceramicbucket.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 TypeFieldDescriptionlonglongbooleanbooleanFields inherited from interface IConfigHelper
BREAK_TEMPERATURE_DEFAULT, BREAK_TEMPERATURE_DESCRIPTION, BREAK_TEMPERATURE_MAX, BREAK_TEMPERATURE_MIN, DURABILITY_DEFAULT, DURABILITY_DESCRIPTION, DURABILITY_MAX, DURABILITY_MIN, FISH_OBTAINING_ENABLED_DEFAULT, FISH_OBTAINING_ENABLED_DESCRIPTION, MILKING_ENABLED_DEFAULT, MILKING_ENABLED_DESCRIPTION -
Constructor Summary
Constructors -
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.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 -
DURABILITY
public long DURABILITY -
FISH_OBTAINING_ENABLED
public boolean FISH_OBTAINING_ENABLED -
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
-
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
-
isMilkingEnabled
public boolean isMilkingEnabled()Description copied from interface:IConfigHelperGets the configured milking enabled value.- Specified by:
isMilkingEnabledin interfaceIConfigHelper- Returns:
- configured milking enabled value
-