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
private static class GlobalLootModifiersTest.SmeltingEnchantmentModifier extends LootModifier
The smelting enchantment causes this modifier to be invoked, via the smelting loot_modifier json
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classGlobalLootModifiersTest.SmeltingEnchantmentModifier.Serializer
-
Field Summary
-
Fields inherited from class net.minecraftforge.common.loot.LootModifier
conditions
-
-
Constructor Summary
Constructors Constructor Description SmeltingEnchantmentModifier(ILootCondition[] conditionsIn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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).private static ItemStacksmelt(ItemStack stack, LootContext context)-
Methods inherited from class net.minecraftforge.common.loot.LootModifier
apply
-
-
-
-
Constructor Detail
-
SmeltingEnchantmentModifier
public SmeltingEnchantmentModifier(ILootCondition[] conditionsIn)
-
-
Method Detail
-
doApply
@Nonnull public java.util.List<ItemStack> doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
Description copied from class:LootModifierApplies the modifier to the generated loot (all loot conditions have already been checked and have returned true).- Specified by:
doApplyin 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
-
smelt
private static ItemStack smelt(ItemStack stack, LootContext context)
-
-