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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
GlobalLootModifiersTest.DungeonLootEnhancerModifier.Serializer
-
Field Summary
Fields Modifier and Type Field Description private int
multiplicationFactor
-
Fields inherited from class net.minecraftforge.common.loot.LootModifier
conditions
-
-
Constructor Summary
Constructors Constructor Description DungeonLootEnhancerModifier(ILootCondition[] conditionsIn)
DungeonLootEnhancerModifier(ILootCondition[] conditionsIn, int multiplicationFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ItemStack>
doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).-
Methods inherited from class net.minecraftforge.common.loot.LootModifier
apply
-
-
-
-
Constructor Detail
-
DungeonLootEnhancerModifier
public DungeonLootEnhancerModifier(ILootCondition[] conditionsIn, int multiplicationFactor)
-
DungeonLootEnhancerModifier
public DungeonLootEnhancerModifier(ILootCondition[] conditionsIn)
-
-
Method Detail
-
doApply
protected 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 classLootModifier
- Parameters:
generatedLoot
- the list of ItemStacks that will be dropped, generated by loot tablescontext
- the LootContext, identical to what is passed to loot tables- Returns:
- modified loot drops
-
-