java.lang.Object
io.github.thebusybiscuit.slimefun4.api.researches.Research
All Implemented Interfaces:
Keyed

public class Research extends Object implements Keyed
Represents a research, which is bound to one SlimefunItem or more and requires XP levels to unlock said item(s).
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

    • Research

      public Research(@Nonnull NamespacedKey key, int id, @Nonnull String defaultName, int defaultCost)
      The constructor for a Research. Create a new research, then bind this research to the Slimefun items you want by calling addItems(SlimefunItem...). Once you're finished, call register() to register it.
      Parameters:
      key - A unique identifier for this Research
      id - old way of identifying researches
      defaultName - The displayed name of this Research
      defaultCost - The Cost in XP levels to unlock this Research
  • Method Details