Class GlobalLootModifiersTest.DungeonLootEnhancerModifier

java.lang.Object
net.minecraftforge.common.loot.LootModifier
net.minecraftforge.debug.gameplay.loot.GlobalLootModifiersTest.DungeonLootEnhancerModifier
All Implemented Interfaces:
IGlobalLootModifier
Enclosing class:
GlobalLootModifiersTest

private static class GlobalLootModifiersTest.DungeonLootEnhancerModifier extends LootModifier
  • Field Details

    • multiplicationFactor

      private final int multiplicationFactor
  • Constructor Details

    • DungeonLootEnhancerModifier

      public DungeonLootEnhancerModifier(LootItemCondition[] conditionsIn, int multiplicationFactor)
    • DungeonLootEnhancerModifier

      public DungeonLootEnhancerModifier(LootItemCondition[] conditionsIn)
  • Method Details

    • doApply

      protected List<ItemStack> doApply(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