Interface IGlobalLootModifier

    • Method Detail

      • apply

        @Nonnull
        java.util.List<ItemStack> apply​(java.util.List<ItemStack> generatedLoot,
                                        LootContext context)
        Applies the modifier to the list of generated loot. This function needs to be responsible for checking ILootConditions as well.
        Parameters:
        generatedLoot - the list of ItemStacks that will be dropped, generated by loot tables
        context - the LootContext, identical to what is passed to loot tables
        Returns:
        modified loot drops