Interface SepareWorldItemsApi
public interface SepareWorldItemsApi
The SepareWorldItems API. Obtain it with
SepareWorldItems.get().-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull EventBusevents()Platform-independent events (group switches, data save/load).@NotNull GroupServicegroups()Groups, worlds and the context each online player currently uses.@NotNull String@NotNull Platformplatform()@NotNull PlayerDataServiceRead access to saved player data of any group.@NotNull DataSectionRegistrysections()Register extra data (mana, skills, backpacks...) that must be saved and restored per group.@NotNull Stringversion()
-
Field Details
-
API_VERSION
static final int API_VERSIONAPI revision. Increased when methods are added, so addons can check for features at runtime.- See Also:
-
-
Method Details
-
platform
- Returns:
- the platform running SepareWorldItems
-
minecraftVersion
- Returns:
- the Minecraft version of the server, e.g.
1.21.11or26.3
-
version
- Returns:
- the SepareWorldItems version, e.g.
2.1.0
-
groups
Groups, worlds and the context each online player currently uses. -
playerData
Read access to saved player data of any group. -
events
Platform-independent events (group switches, data save/load). -
sections
Register extra data (mana, skills, backpacks...) that must be saved and restored per group.
-