Index
All Classes and Interfaces|All Packages
A
- all() - Static method in record class com.cotani.inventory.api.InventorySyncOptions
-
Options to synchronize everything (all inventories, stats, potion effects, exp, flight).
- allowFlight() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
allowFlightrecord component. - ambient() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Returns the value of the
ambientrecord component. - amplifier() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Returns the value of the
amplifierrecord component. - applyAsync(UUID, InventorySnapshot, InventorySyncOptions) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Applies an inventory snapshot onto the player with specific sync options.
- applyAsync(Player, InventorySnapshot) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Deprecated.
- applyAsync(Player, InventorySnapshot, InventorySyncOptions) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Deprecated.capture the UUID at the platform boundary and call the UUID overload
- armorContents() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
armorContentsrecord component. - armorContents(List) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
B
- beginTransferAsync(UUID, Duration) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Acquires a cross-server transfer lock for a player switching servers.
- binarySerializer() - Static method in class com.cotani.inventory.CotaniInventories
-
Returns the standard binary serializer utilizing native Paper DataComponents.
- build() - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
- build() - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- build() - Method in class com.cotani.inventory.CotaniInventories.Builder
- builder() - Static method in record class com.cotani.inventory.api.InventorySyncOptions
-
Creates a new builder for customized sync options.
- builder(UUID) - Static method in record class com.cotani.inventory.api.InventorySnapshot
-
Creates a new builder for constructing
InventorySnapshot. - builder(Plugin, PaperTaskScheduler) - Static method in class com.cotani.inventory.CotaniInventories
-
Creates a builder for flexible configuration of the
InventoryModule.
C
- captureAsync(UUID) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Captures an immutable snapshot of the player's current inventory, stats, and effects.
- captureAsync(Player) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Deprecated.capture the UUID at the platform boundary and call
InventorySyncService.captureAsync(UUID) - close() - Method in interface com.cotani.inventory.InventoryModule
- com.cotani.inventory - package com.cotani.inventory
- com.cotani.inventory.api - package com.cotani.inventory.api
- completeTransferAsync(TransferLease) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Completes a cross-server transfer, releasing the network lock.
- CotaniInventories - Class in com.cotani.inventory
-
Main factory and entry point for the Cotani Inventory synchronization module.
- CotaniInventories.Builder - Class in com.cotani.inventory
-
Builder for
InventoryModule. - create(Plugin, PaperTaskScheduler, InventoryRepository) - Static method in class com.cotani.inventory.CotaniInventories
-
Creates an inventory module backed by a custom repository.
- create(Plugin, PaperTaskScheduler, CotaniStorage) - Static method in class com.cotani.inventory.CotaniInventories
-
Creates a standard storage-backed
InventoryModule. - createdAt() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
createdAtrecord component. - createdAt(long) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
- CrossServerTransferLock - Interface in com.cotani.inventory.api
-
Coordination lock for cross-server player inventory transfers.
- CrossServerTransferLock.NoopTransferLock - Class in com.cotani.inventory.api
-
No-op lock implementation.
D
- deserialize(byte[]) - Method in interface com.cotani.inventory.api.InventorySerializer
-
Deserializes a binary byte array back into an
InventorySnapshot. - durationTicks() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Returns the value of the
durationTicksrecord component.
E
- empty(UUID) - Static method in record class com.cotani.inventory.api.InventorySnapshot
-
Creates an empty baseline snapshot for a player.
- enderChestContents() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
enderChestContentsrecord component. - enderChestContents(List) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
- equals(Object) - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.inventory.api.TransferLease
-
Indicates whether some other object is "equal to" this one.
- exp() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
exprecord component. - experience(int, int, float) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
F
- findByIdAsync(UUID, long) - Method in interface com.cotani.inventory.api.InventoryRepository
-
Retrieves a specific snapshot by player UUID and creation timestamp.
- findHistoryAsync(UUID, int) - Method in interface com.cotani.inventory.api.InventoryRepository
-
Retrieves historical snapshots for a player ordered by timestamp descending.
- findLatestAsync(UUID) - Method in interface com.cotani.inventory.api.InventoryRepository
-
Finds the most recent saved snapshot for a player.
- flight(boolean, boolean) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
- flying() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
flyingrecord component. - food(int, float) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
- foodLevel() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
foodLevelrecord component. - fromBase64(String) - Method in interface com.cotani.inventory.api.InventorySerializer
-
Deserializes a Base64-encoded string back into an
InventorySnapshot. - fromBukkit(PotionEffect) - Static method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Converts a Bukkit
PotionEffectinto aPotionEffectSnapshot.
G
- gameMode() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
gameModerecord component. - gameMode(GameMode) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
H
- hashCode() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.inventory.api.TransferLease
-
Returns a hash code value for this object.
- health() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
healthrecord component. - health(double, double) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
- historyAsync(UUID, int) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Retrieves historical snapshots for audit or rollback purposes.
I
- icon() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Returns the value of the
iconrecord component. - inventoryAndEnderChest() - Static method in record class com.cotani.inventory.api.InventorySyncOptions
-
Options to synchronize personal items and enderchest.
- InventoryModule - Interface in com.cotani.inventory
-
Lifecycle and dependency container for the Cotani Inventory module.
- inventoryOnly() - Static method in record class com.cotani.inventory.api.InventorySyncOptions
-
Options to synchronize only the player's personal items (main, armor, offhand).
- InventoryRepository - Interface in com.cotani.inventory.api
-
Storage repository for saving, querying, and auditing historical inventory snapshots.
- InventorySerializer - Interface in com.cotani.inventory.api
-
Serializer interface responsible for encoding and decoding
InventorySnapshotinto loss-less binary format or Base64 representation. - InventorySnapshot - Record Class in com.cotani.inventory.api
-
Immutable snapshot capturing all items, equipment, enderchest, active effects, and attributes of a player at a specific point in time.
- InventorySnapshot(UUID, int, long, List, List, ItemStack, List, int, int, float, double, double, int, float, List, GameMode, boolean, boolean) - Constructor for record class com.cotani.inventory.api.InventorySnapshot
-
Creates an instance of a
InventorySnapshotrecord class. - InventorySnapshot.Builder - Class in com.cotani.inventory.api
-
Builder for
InventorySnapshot. - InventorySyncOptions - Record Class in com.cotani.inventory.api
-
Configuration options controlling which sections of a player's state are included during inventory snapshot capturing, saving, or application.
- InventorySyncOptions(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean) - Constructor for record class com.cotani.inventory.api.InventorySyncOptions
-
Creates an instance of a
InventorySyncOptionsrecord class. - InventorySyncOptions.Builder - Class in com.cotani.inventory.api
-
Builder for
InventorySyncOptions. - InventorySyncService - Interface in com.cotani.inventory.api
-
Public service interface for capturing, applying, saving, restoring, and coordinating cross-server synchronization of player inventories and player states.
L
- level() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
levelrecord component. - loadAndApplyAsync(UUID, InventorySyncOptions) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Loads the latest saved snapshot for the player UUID and applies it to the online player.
- loadAndApplyAsync(Player) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Deprecated.
- loadAndApplyAsync(Player, InventorySyncOptions) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Deprecated.capture the UUID at the platform boundary and call the UUID overload
- loadLatestAsync(UUID) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Loads the latest saved snapshot for a player from the repository.
M
- mainContents() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
mainContentsrecord component. - mainContents(List) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
- maxHealth() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
maxHealthrecord component. - migrations() - Static method in class com.cotani.inventory.CotaniInventories
-
Returns the list of SQL migrations required by the inventory module.
- mutateAsync(UUID, UnaryOperator, InventorySyncOptions) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Captures, mutates and applies a snapshot on the player's entity thread.
N
- noop() - Static method in interface com.cotani.inventory.api.CrossServerTransferLock
-
Returns a no-op lock implementation for single-server standalone deployments.
O
- offHand() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
offHandrecord component. - offHand(ItemStack) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
P
- particles() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Returns the value of the
particlesrecord component. - playerId() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
playerIdrecord component. - playerId() - Method in record class com.cotani.inventory.api.TransferLease
-
Returns the value of the
playerIdrecord component. - potionEffects() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
potionEffectsrecord component. - potionEffects(List) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
- PotionEffectSnapshot - Record Class in com.cotani.inventory.api
-
Immutable snapshot of an active potion effect on a player.
- PotionEffectSnapshot(PotionEffectType, int, int, boolean, boolean, boolean) - Constructor for record class com.cotani.inventory.api.PotionEffectSnapshot
-
Creates an instance of a
PotionEffectSnapshotrecord class.
R
- repository() - Method in interface com.cotani.inventory.InventoryModule
-
Returns the underlying inventory persistence repository.
- repository(InventoryRepository) - Method in class com.cotani.inventory.CotaniInventories.Builder
- rollbackAsync(UUID, long) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Restores a historical snapshot with all synchronization options enabled.
- rollbackAsync(UUID, long, InventorySyncOptions) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Restores a specific historical snapshot onto the online player identified by the UUID.
- rollbackAsync(Player, long) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Deprecated.
- rollbackAsync(Player, long, InventorySyncOptions) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Deprecated.capture the UUID at the platform boundary and call the UUID overload
S
- saturation() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
saturationrecord component. - saveAsync(UUID) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Captures the player's current state on its entity thread and saves it asynchronously into the storage repository.
- saveAsync(Player) - Method in interface com.cotani.inventory.api.InventorySyncService
-
Deprecated.capture the UUID at the platform boundary and call
InventorySyncService.saveAsync(UUID) - saveSnapshotAsync(InventorySnapshot) - Method in interface com.cotani.inventory.api.InventoryRepository
-
Persists an inventory snapshot into storage.
- serialize(InventorySnapshot) - Method in interface com.cotani.inventory.api.InventorySerializer
-
Serializes a snapshot into a loss-less binary byte array.
- serializer() - Method in interface com.cotani.inventory.InventoryModule
-
Returns the binary snapshot serializer.
- serializer(InventorySerializer) - Method in class com.cotani.inventory.CotaniInventories.Builder
- service() - Method in interface com.cotani.inventory.InventoryModule
-
Returns the inventory synchronization and management service.
- storage(CotaniStorage) - Method in class com.cotani.inventory.CotaniInventories.Builder
- syncArmor() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncArmorrecord component. - syncArmor(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- syncEnderChest() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncEnderChestrecord component. - syncEnderChest(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- syncExperience() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncExperiencerecord component. - syncExperience(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- syncFlight() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncFlightrecord component. - syncFlight(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- syncGameMode() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncGameModerecord component. - syncGameMode(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- syncHealthAndFood() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncHealthAndFoodrecord component. - syncHealthAndFood(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- syncMainContents() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncMainContentsrecord component. - syncMainContents(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- syncOffHand() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncOffHandrecord component. - syncOffHand(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
- syncPotionEffects() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns the value of the
syncPotionEffectsrecord component. - syncPotionEffects(boolean) - Method in class com.cotani.inventory.api.InventorySyncOptions.Builder
T
- toBase64(InventorySnapshot) - Method in interface com.cotani.inventory.api.InventorySerializer
-
Serializes a snapshot into a Base64-encoded string.
- toBukkit() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Converts this snapshot back to a Bukkit
PotionEffect. - token() - Method in record class com.cotani.inventory.api.TransferLease
-
Returns the value of the
tokenrecord component. - toString() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.inventory.api.InventorySyncOptions
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.inventory.api.TransferLease
-
Returns a string representation of this record class.
- totalExperience() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
totalExperiencerecord component. - TransferLease - Record Class in com.cotani.inventory.api
-
Ownership proof for one cross-server inventory transfer lock lease.
- TransferLease(UUID, String) - Constructor for record class com.cotani.inventory.api.TransferLease
-
Creates an instance of a
TransferLeaserecord class. - transferLock(CrossServerTransferLock) - Method in class com.cotani.inventory.CotaniInventories.Builder
- tryLockAsync(UUID, Duration) - Method in class com.cotani.inventory.api.CrossServerTransferLock.NoopTransferLock
- tryLockAsync(UUID, Duration) - Method in interface com.cotani.inventory.api.CrossServerTransferLock
-
Attempts to acquire an exclusive lock for the player across the server network.
- type() - Method in record class com.cotani.inventory.api.PotionEffectSnapshot
-
Returns the value of the
typerecord component.
U
- unlockAsync(TransferLease) - Method in class com.cotani.inventory.api.CrossServerTransferLock.NoopTransferLock
- unlockAsync(TransferLease) - Method in interface com.cotani.inventory.api.CrossServerTransferLock
-
Releases the player lock across the network.
V
- version() - Method in record class com.cotani.inventory.api.InventorySnapshot
-
Returns the value of the
versionrecord component. - version(int) - Method in class com.cotani.inventory.api.InventorySnapshot.Builder
All Classes and Interfaces|All Packages