Class BagOfGoldIntegration
java.lang.Object
com.becerritoo.GravesX.integration.BagOfGoldIntegration
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidsplitPhysicalMoney(@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.
-
Constructor Details
-
BagOfGoldIntegration
-
-
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 entitypermissionList- resolved GravesX permissions for this entity (nullable)graveItems- items currently intended for grave storageignoredItems- items that should drop outside the gravepreserveSlots- true for EXACT storage mode (keep list indices stable)
-