Class BagOfGoldIntegration

java.lang.Object
com.becerritoo.GravesX.integration.BagOfGoldIntegration

public final class BagOfGoldIntegration extends Object
Integrates GravesX with BagOfGold's physical-money items.

Only item stacks marked as real BagOfGold/CustomItemsLib rewards are processed. This integration never touches digital balances (Vault/DB).

  • Constructor Summary

    Constructors
    Constructor
    Description
    BagOfGoldIntegration(@NotNull Graves plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    splitPhysicalMoney(@NotNull org.bukkit.entity.LivingEntity livingEntity, @Nullable List<String> permissionList, @NotNull List<org.bukkit.inventory.ItemStack> graveItems, @NotNull List<org.bukkit.inventory.ItemStack> ignoredItems, boolean preserveSlots)
    Splits BagOfGold physical money from grave items into ignored items so ignored items are dropped on the ground by GravesX.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BagOfGoldIntegration

      public BagOfGoldIntegration(@NotNull @NotNull Graves plugin)
  • Method Details

    • splitPhysicalMoney

      public void splitPhysicalMoney(@NotNull @NotNull org.bukkit.entity.LivingEntity livingEntity, @Nullable @Nullable List<String> permissionList, @NotNull @NotNull List<org.bukkit.inventory.ItemStack> graveItems, @NotNull @NotNull List<org.bukkit.inventory.ItemStack> ignoredItems, boolean preserveSlots)
      Splits BagOfGold physical money from grave items into ignored items so ignored items are dropped on the ground by GravesX.
      Parameters:
      livingEntity - dead entity
      permissionList - resolved GravesX permissions for this entity (nullable)
      graveItems - items currently intended for grave storage
      ignoredItems - items that should drop outside the grave
      preserveSlots - true for EXACT storage mode (keep list indices stable)