Class GlobalLootModifiersTest.SilkTouchTestModifier

  • All Implemented Interfaces:
    IGlobalLootModifier
    Enclosing class:
    GlobalLootModifiersTest

    private static class GlobalLootModifiersTest.SilkTouchTestModifier
    extends LootModifier
    When harvesting blocks with bamboo, this modifier is invoked, via the silk_touch_bamboo loot_modifier json
    • Constructor Detail

      • SilkTouchTestModifier

        public SilkTouchTestModifier​(ILootCondition[] conditionsIn)
    • Method Detail

      • doApply

        @Nonnull
        public java.util.List<ItemStack> doApply​(java.util.List<ItemStack> generatedLoot,
                                                 LootContext context)
        Description copied from class: LootModifier
        Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).
        Specified by:
        doApply in class LootModifier
        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