Class TraitManager
java.lang.Object
io.github.sefiraat.slimetinker.managers.TraitManager
This class manages the traits.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TraitManager
public TraitManager()
-
-
Method Details
-
getEnabled
If the trait is enabled in the config. If the config does not exist, set to true by default.- Parameters:
material- the material of traitpart- the part of trait- Returns:
- if the trait is enabled in the config
-
isEnabled
If the trait is enabled in the config. This will not set the default value.- Parameters:
material- the material of traitpart- the part of trait- Returns:
- if the trait is enabled in the config
-
save
public void save()Save the file
-