Class SlimefunGuideSettings

java.lang.Object
io.github.thebusybiscuit.slimefun4.core.guide.options.SlimefunGuideSettings

public final class SlimefunGuideSettings extends Object
This static utility class offers various methods that provide access to the Settings menu of our SlimefunGuide. This menu is used to allow a Player to change things such as the Language.
Author:
TheBusyBiscuit
See Also:
  • Method Details

    • addOption

      public static <T> void addOption(@Nonnull SlimefunGuideOption<T> option)
    • openSettings

      @ParametersAreNonnullByDefault public static void openSettings(Player p, ItemStack guide)
    • hasFireworksEnabled

      public static boolean hasFireworksEnabled(@Nonnull Player p)
      This method checks if the given Player has enabled the FireworksOption in their SlimefunGuide. If they enabled this setting, they will see fireworks when they unlock a Research.
      Parameters:
      p - The Player
      Returns:
      Whether this Player wants to see fireworks when unlocking a Research
    • hasLearningAnimationEnabled

      public static boolean hasLearningAnimationEnabled(@Nonnull Player p)
      This method checks if the given Player has enabled the LearningAnimationOption in their SlimefunGuide. If they enabled this setting, they will see messages in chat about the progress of their Research.
      Parameters:
      p - The Player
      Returns:
      Whether this Player wants to info messages in chat when unlocking a Research