Class GravesXAPI
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AddonAPI
Addon helpers.final GraveCreationAPI
Grave creation operations.final GraveManagementAPI
Grave management operations.final InventoryAPI
Inventory helpers.final SkinAPI
Skin/texture helpers.final UtilAPI
Utilities (permissions, XP, colors, files, YAML, paste, etc.).final LocationAPI
World/location helpers. -
Constructor Summary
ConstructorsConstructorDescriptionGravesXAPI
(@NotNull Graves plugin) Initializes the GravesXAPI facade with all modular API components. -
Method Summary
Modifier and TypeMethodDescription@NotNull AddonAPI
Provides access to addon management utility methods.@NotNull GraveCreationAPI
Provides access to grave creation utility methods.@NotNull GraveManagementAPI
Provides access to grave management utility methods.@NotNull InventoryAPI
Provides access to inventory utility methods.@NotNull LocationAPI
Provides access to world and location utility methods.@NotNull SkinAPI
Provides access to skin and texture utility methods.@NotNull UtilAPI
Provides access to general-purpose utility methods.@NotNull Graves
plugin()
Underlying Graves plugin (advanced usage).
-
Field Details
-
gravesCreate
Grave creation operations. -
gravesManage
Grave management operations. -
world
World/location helpers. -
inventory
Inventory helpers. -
skin
Skin/texture helpers. -
addon
Addon helpers. -
util
Utilities (permissions, XP, colors, files, YAML, paste, etc.).
-
-
Constructor Details
-
GravesXAPI
Initializes the GravesXAPI facade with all modular API components.This constructor sets up and wires together the modular API classes:
LocationAPI
– helpers for world and location utilitiesUtilAPI
– general-purpose helpers (Base64, colors, XP, permissions, etc.)InventoryAPI
– helpers for inventories, conversions, and equipping playersSkinAPI
– helpers for skins, skulls, and player texturesAddonAPI
– helpers for managing addons and their configurationGraveManagementAPI
– operations for managing existing gravesGraveCreationAPI
– operations for creating new graves
Each sub-API is created and linked to the given
Graves
plugin instance. Consumers should obtain this facade once (e.g., inonEnable()
) and re-use it for accessing all modular APIs.- Parameters:
plugin
- The activeGraves
plugin instance used to initialize APIs
-
-
Method Details
-
getLocationAPI
Provides access to world and location utility methods.This includes helpers for converting between
Location
and string representations, rounding coordinates, working with chunks, and simplifyingBlockFace
values.- Returns:
- the
LocationAPI
instance
-
getUtilAPI
Provides access to general-purpose utility methods.This includes helpers for Base64 encoding/decoding, colors, particles, permissions, experience calculations, materials, resources, files, YAML validation, reflection, and version updates.
- Returns:
- the
UtilAPI
instance
-
getInventoryAPI
Provides access to inventory utility methods.This includes helpers for converting inventories to and from strings, equipping players with armor or items, and determining valid inventory sizes.
- Returns:
- the
InventoryAPI
instance
-
getSkinAPI
Provides access to skin and texture utility methods.This includes helpers for retrieving and applying player skin textures, setting skull textures, and accessing
GameProfile
information for players.- Returns:
- the
SkinAPI
instance
-
getAddonAPI
Provides access to addon management utility methods.This includes ensuring addon folders exist and exporting addon configuration files from packaged resources.
- Returns:
- the
AddonAPI
instance
-
getGravesManagementAPI
Provides access to grave management utility methods.This includes removing, breaking, looting, abandoning, and counting graves, as well as proximity checks.
- Returns:
- the
GraveManagementAPI
instance
-
getGravesCreationAPI
Provides access to grave creation utility methods.This includes creating new graves with various options such as equipment, items, experience, locations, protection, and custom causes.
- Returns:
- the
GraveCreationAPI
instance
-
plugin
Underlying Graves plugin (advanced usage).
-