Interface SepareWorldItemsApi


public interface SepareWorldItemsApi
The SepareWorldItems API. Obtain it with SepareWorldItems.get().
  • Field Details

    • API_VERSION

      static final int API_VERSION
      API revision. Increased when methods are added, so addons can check for features at runtime.
      See Also:
  • Method Details

    • platform

      @NotNull @NotNull Platform platform()
      Returns:
      the platform running SepareWorldItems
    • minecraftVersion

      @NotNull @NotNull String minecraftVersion()
      Returns:
      the Minecraft version of the server, e.g. 1.21.11 or 26.3
    • version

      @NotNull @NotNull String version()
      Returns:
      the SepareWorldItems version, e.g. 2.1.0
    • groups

      @NotNull @NotNull GroupService groups()
      Groups, worlds and the context each online player currently uses.
    • playerData

      @NotNull @NotNull PlayerDataService playerData()
      Read access to saved player data of any group.
    • events

      @NotNull @NotNull EventBus events()
      Platform-independent events (group switches, data save/load).
    • sections

      @NotNull @NotNull DataSectionRegistry sections()
      Register extra data (mana, skills, backpacks...) that must be saved and restored per group.