Class TraitManager

java.lang.Object
io.github.sefiraat.slimetinker.managers.TraitManager

public class TraitManager extends Object
This class manages the traits.
  • Constructor Details

    • TraitManager

      public TraitManager()
  • Method Details

    • getEnabled

      public boolean getEnabled(String material, String part)
      If the trait is enabled in the config. If the config does not exist, set to true by default.
      Parameters:
      material - the material of trait
      part - the part of trait
      Returns:
      if the trait is enabled in the config
    • isEnabled

      public boolean isEnabled(String material, String part)
      If the trait is enabled in the config. This will not set the default value.
      Parameters:
      material - the material of trait
      part - the part of trait
      Returns:
      if the trait is enabled in the config
    • save

      public void save()
      Save the file