Class GlobalLootModifiersTest.SmeltingEnchantmentModifier
java.lang.Object
net.minecraftforge.common.loot.LootModifier
net.minecraftforge.debug.gameplay.loot.GlobalLootModifiersTest.SmeltingEnchantmentModifier
- All Implemented Interfaces:
- IGlobalLootModifier
- Enclosing class:
- GlobalLootModifiersTest
The smelting enchantment causes this modifier to be invoked, via the smelting loot_modifier json
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static class
- 
Field SummaryFields inherited from class net.minecraftforge.common.loot.LootModifierconditions
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoApply(List<ItemStack> generatedLoot, LootContext context)Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).private static ItemStacksmelt(ItemStack stack, LootContext context)Methods inherited from class net.minecraftforge.common.loot.LootModifierapply
- 
Constructor Details- 
SmeltingEnchantmentModifier
 
- 
- 
Method Details- 
doApplyDescription copied from class:LootModifierApplies the modifier to the generated loot (all loot conditions have already been checked and have returned true).- Specified by:
- doApplyin 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
 
- 
smelt
 
-