Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- all() - Method in interface com.github.happyuky7.swi.api.section.DataSectionRegistry
- API_VERSION - Static variable in interface com.github.happyuky7.swi.api.SepareWorldItemsApi
-
API revision.
B
- BUKKIT - Enum constant in enum class com.github.happyuky7.swi.api.Platform
-
Bukkit, Spigot, Paper, Purpur, Folia and hybrids (Mohist, Arclight...).
C
- Cancellable - Interface in com.github.happyuky7.swi.api.event
- clear(P) - Method in interface com.github.happyuky7.swi.api.section.DataSection
-
Resets the player's state before the destination data is loaded.
- com.github.happyuky7.swi.api - package com.github.happyuky7.swi.api
- com.github.happyuky7.swi.api.context - package com.github.happyuky7.swi.api.context
- com.github.happyuky7.swi.api.data - package com.github.happyuky7.swi.api.data
- com.github.happyuky7.swi.api.event - package com.github.happyuky7.swi.api.event
- com.github.happyuky7.swi.api.section - package com.github.happyuky7.swi.api.section
- contains(String) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- context() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
- context() - Method in class com.github.happyuky7.swi.api.event.PlayerDataLoadEvent
- context() - Method in class com.github.happyuky7.swi.api.event.PlayerDataSaveEvent
- ContextType - Enum Class in com.github.happyuky7.swi.api.context
-
Where a group comes from.
- copy() - Method in interface com.github.happyuky7.swi.api.data.DataNode
- create() - Static method in interface com.github.happyuky7.swi.api.data.DataNode
- currentContext(UUID) - Method in interface com.github.happyuky7.swi.api.context.GroupService
- customSection(String) - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
D
- data() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
- data() - Method in class com.github.happyuky7.swi.api.event.PlayerDataLoadEvent
- data() - Method in class com.github.happyuky7.swi.api.event.PlayerDataSaveEvent
- DataNode - Interface in com.github.happyuky7.swi.api.data
-
Platform-independent tree of saved values (the content of one player data record).
- DataSection<P> - Interface in com.github.happyuky7.swi.api.section
-
Extra player data that SepareWorldItems saves and restores per group, next to the built-in inventory/XP/health...
- DataSectionRegistry - Interface in com.github.happyuky7.swi.api.section
-
Registry of custom
DataSections. - dataVersion() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
- defaultGroup() - Method in interface com.github.happyuky7.swi.api.context.GroupService
E
- enabledByDefault() - Method in interface com.github.happyuky7.swi.api.section.DataSection
- equals(Object) - Method in class com.github.happyuky7.swi.api.context.GroupContext
- EventBus - Interface in com.github.happyuky7.swi.api.event
-
Platform-independent event bus.
- EventPriority - Enum Class in com.github.happyuky7.swi.api.event
-
Listener order: LOWEST runs first, MONITOR runs last and must not change the outcome.
- events() - Method in interface com.github.happyuky7.swi.api.SepareWorldItemsApi
-
Platform-independent events (group switches, data save/load).
- exists(UUID, GroupContext) - Method in interface com.github.happyuky7.swi.api.data.PlayerDataService
- exp() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
- expLevel() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
F
- FABRIC - Enum constant in enum class com.github.happyuky7.swi.api.Platform
-
Fabric and Legacy Fabric.
- FORGE - Enum constant in enum class com.github.happyuky7.swi.api.Platform
-
MinecraftForge.
- format() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
- FORMAT_BUKKIT - Static variable in class com.github.happyuky7.swi.api.data.PlayerSnapshot
-
Items serialized by Bukkit's ConfigurationSerializable (plugin, historical format).
- FORMAT_SNBT - Static variable in class com.github.happyuky7.swi.api.data.PlayerSnapshot
-
Items serialized as SNBT strings by the Fabric mod.
- from() - Method in class com.github.happyuky7.swi.api.event.GroupSwitchPostEvent
- from() - Method in class com.github.happyuky7.swi.api.event.GroupSwitchPreEvent
G
- gamemode() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
- get() - Static method in class com.github.happyuky7.swi.api.SepareWorldItems
- get(String) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- get(String) - Method in interface com.github.happyuky7.swi.api.section.DataSectionRegistry
- getBoolean(String, boolean) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getDouble(String, double) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getFloat(String, float) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getIfLoaded() - Static method in class com.github.happyuky7.swi.api.SepareWorldItems
- getInt(String, int) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getList(String) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getLong(String, long) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getNode(String) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getOrCreateNode(String) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getString(String) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- getString(String, String) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- group() - Method in class com.github.happyuky7.swi.api.context.GroupContext
- GroupContext - Class in com.github.happyuky7.swi.api.context
-
Identifies one storage context: a group name plus the kind of group.
- groupOfWorld(String) - Method in interface com.github.happyuky7.swi.api.context.GroupService
- groups() - Method in interface com.github.happyuky7.swi.api.SepareWorldItemsApi
-
Groups, worlds and the context each online player currently uses.
- GroupService - Interface in com.github.happyuky7.swi.api.context
-
Configured groups and the live context of online players.
- GroupSwitchPostEvent - Class in com.github.happyuky7.swi.api.event
-
Fired after a player's data was swapped to a new context (the new data is already applied).
- GroupSwitchPostEvent(Object, UUID, String, GroupContext, GroupContext, String) - Constructor for class com.github.happyuky7.swi.api.event.GroupSwitchPostEvent
- GroupSwitchPreEvent - Class in com.github.happyuky7.swi.api.event
-
Fired right before a player's data is swapped from one context to another.
- GroupSwitchPreEvent(Object, UUID, String, GroupContext, GroupContext, String) - Constructor for class com.github.happyuky7.swi.api.event.GroupSwitchPreEvent
H
- hashCode() - Method in class com.github.happyuky7.swi.api.context.GroupContext
- health() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
- HIGH - Enum constant in enum class com.github.happyuky7.swi.api.event.EventPriority
- HIGHEST - Enum constant in enum class com.github.happyuky7.swi.api.event.EventPriority
- hunger() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
I
- id() - Method in interface com.github.happyuky7.swi.api.section.DataSection
- isActive() - Method in interface com.github.happyuky7.swi.api.event.Subscription
- isCancelled() - Method in interface com.github.happyuky7.swi.api.event.Cancellable
- isCancelled() - Method in class com.github.happyuky7.swi.api.event.GroupSwitchPreEvent
- isLoaded() - Static method in class com.github.happyuky7.swi.api.SepareWorldItems
- isRegion() - Method in class com.github.happyuky7.swi.api.context.GroupContext
K
L
- load(UUID, GroupContext) - Method in interface com.github.happyuky7.swi.api.data.PlayerDataService
- load(P, DataNode) - Method in interface com.github.happyuky7.swi.api.section.DataSection
-
Applies saved state.
- LOW - Enum constant in enum class com.github.happyuky7.swi.api.event.EventPriority
- LOWEST - Enum constant in enum class com.github.happyuky7.swi.api.event.EventPriority
M
- minecraftVersion() - Method in interface com.github.happyuky7.swi.api.SepareWorldItemsApi
- MONITOR - Enum constant in enum class com.github.happyuky7.swi.api.event.EventPriority
N
- NEOFORGE - Enum constant in enum class com.github.happyuky7.swi.api.Platform
-
NeoForge.
- NORMAL - Enum constant in enum class com.github.happyuky7.swi.api.event.EventPriority
- number(Object) - Static method in interface com.github.happyuky7.swi.api.data.DataNode
O
- of(ContextType, String) - Static method in class com.github.happyuky7.swi.api.context.GroupContext
- of(Map) - Static method in interface com.github.happyuky7.swi.api.data.DataNode
P
- platform() - Method in interface com.github.happyuky7.swi.api.SepareWorldItemsApi
- Platform - Enum Class in com.github.happyuky7.swi.api
-
Platform the SepareWorldItems implementation runs on.
- platformPlayer() - Method in class com.github.happyuky7.swi.api.event.PlayerEvent
- player(Class) - Method in class com.github.happyuky7.swi.api.event.PlayerEvent
-
Typed access to the platform player, e.g.
- playerClassName() - Method in enum class com.github.happyuky7.swi.api.Platform
- playerData() - Method in interface com.github.happyuky7.swi.api.SepareWorldItemsApi
-
Read access to saved player data of any group.
- PlayerDataLoadEvent - Class in com.github.happyuky7.swi.api.event
-
Fired after a record was read from storage and before it is applied to the player.
- PlayerDataLoadEvent(Object, UUID, String, GroupContext, DataNode) - Constructor for class com.github.happyuky7.swi.api.event.PlayerDataLoadEvent
- PlayerDataSaveEvent - Class in com.github.happyuky7.swi.api.event
-
Fired after the player's state was written into
PlayerDataSaveEvent.data()and before it is persisted. - PlayerDataSaveEvent(Object, UUID, String, GroupContext, DataNode) - Constructor for class com.github.happyuky7.swi.api.event.PlayerDataSaveEvent
- PlayerDataService - Interface in com.github.happyuky7.swi.api.data
-
Read access to the player data stored by SepareWorldItems, whatever the storage backend (YAML files, SQLite, MySQL/MariaDB, MongoDB, Redis).
- PlayerEvent - Class in com.github.happyuky7.swi.api.event
-
Base class of events about an online player.
- PlayerEvent(Object, UUID, String) - Constructor for class com.github.happyuky7.swi.api.event.PlayerEvent
- playerName() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
- playerName() - Method in class com.github.happyuky7.swi.api.event.PlayerEvent
- PlayerSnapshot - Class in com.github.happyuky7.swi.api.data
-
Saved data of one player in one
GroupContext. - PlayerSnapshot(UUID, String, GroupContext, DataNode) - Constructor for class com.github.happyuky7.swi.api.data.PlayerSnapshot
- playerType() - Method in interface com.github.happyuky7.swi.api.section.DataSection
- playerUuid() - Method in class com.github.happyuky7.swi.api.event.PlayerEvent
- post(E) - Method in interface com.github.happyuky7.swi.api.event.EventBus
-
Dispatches an event to its listeners.
R
- region(String) - Static method in class com.github.happyuky7.swi.api.context.GroupContext
- REGION - Enum constant in enum class com.github.happyuky7.swi.api.context.ContextType
-
Group assigned to a region (WorldGuard regions on Bukkit).
- regionGroups() - Method in interface com.github.happyuky7.swi.api.context.GroupService
- regionId() - Method in class com.github.happyuky7.swi.api.event.GroupSwitchPostEvent
- regionId() - Method in class com.github.happyuky7.swi.api.event.GroupSwitchPreEvent
- register(SepareWorldItemsApi) - Static method in class com.github.happyuky7.swi.api.SepareWorldItems
- register(DataSection) - Method in interface com.github.happyuky7.swi.api.section.DataSectionRegistry
- remove(String) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- resolveUuid(String, GroupContext) - Method in interface com.github.happyuky7.swi.api.data.PlayerDataService
-
Finds the UUID of a player by the last name saved in that context (case-insensitive).
S
- save(P, DataNode) - Method in interface com.github.happyuky7.swi.api.section.DataSection
-
Writes the player's current state into
out(empty node owned by this section). - sections() - Method in interface com.github.happyuky7.swi.api.SepareWorldItemsApi
-
Register extra data (mana, skills, backpacks...) that must be saved and restored per group.
- SepareWorldItems - Class in com.github.happyuky7.swi.api
-
Static entry point to the SepareWorldItems API.
- SepareWorldItemsApi - Interface in com.github.happyuky7.swi.api
-
The SepareWorldItems API.
- set(String, Object) - Method in interface com.github.happyuky7.swi.api.data.DataNode
- setCancelled(boolean) - Method in interface com.github.happyuky7.swi.api.event.Cancellable
- setCancelled(boolean) - Method in class com.github.happyuky7.swi.api.event.GroupSwitchPreEvent
- subscribe(Class, EventPriority, Consumer) - Method in interface com.github.happyuky7.swi.api.event.EventBus
- subscribe(Class, Consumer) - Method in interface com.github.happyuky7.swi.api.event.EventBus
- Subscription - Interface in com.github.happyuky7.swi.api.event
-
Handle returned by
EventBus.subscribe(Class, Consumer). - SwiEvent - Interface in com.github.happyuky7.swi.api.event
-
Marker for all SepareWorldItems events.
T
- to() - Method in class com.github.happyuky7.swi.api.event.GroupSwitchPostEvent
- to() - Method in class com.github.happyuky7.swi.api.event.GroupSwitchPreEvent
- toMap() - Method in interface com.github.happyuky7.swi.api.data.DataNode
- toString() - Method in class com.github.happyuky7.swi.api.context.GroupContext
- type() - Method in class com.github.happyuky7.swi.api.context.GroupContext
U
- unregister() - Static method in class com.github.happyuky7.swi.api.SepareWorldItems
- unregister(String) - Method in interface com.github.happyuky7.swi.api.section.DataSectionRegistry
- unsubscribe() - Method in interface com.github.happyuky7.swi.api.event.Subscription
- uuid() - Method in class com.github.happyuky7.swi.api.data.PlayerSnapshot
V
- valueOf(String) - Static method in enum class com.github.happyuky7.swi.api.context.ContextType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.happyuky7.swi.api.event.EventPriority
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.happyuky7.swi.api.Platform
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.github.happyuky7.swi.api.context.ContextType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.happyuky7.swi.api.event.EventPriority
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.happyuky7.swi.api.Platform
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Method in interface com.github.happyuky7.swi.api.SepareWorldItemsApi
W
- world(String) - Static method in class com.github.happyuky7.swi.api.context.GroupContext
- WORLD - Enum constant in enum class com.github.happyuky7.swi.api.context.ContextType
-
Group assigned to a world/dimension (
worlds:in the config). - worldGroups() - Method in interface com.github.happyuky7.swi.api.context.GroupService
- worldMappings() - Method in interface com.github.happyuky7.swi.api.context.GroupService
All Classes and Interfaces|All Packages|Constant Field Values