类 GlobalLootModifiersTest.SmeltingEnchantmentModifier

java.lang.Object
net.neoforged.neoforge.common.loot.LootModifier
net.neoforged.neoforge.debug.loot.GlobalLootModifiersTest.SmeltingEnchantmentModifier
所有已实现的接口:
IGlobalLootModifier
封闭类:
GlobalLootModifiersTest

private static class GlobalLootModifiersTest.SmeltingEnchantmentModifier extends LootModifier
The smelting enchantment causes this modifier to be invoked, via the smelting loot_modifier json
  • 字段详细资料

  • 构造器详细资料

    • SmeltingEnchantmentModifier

      public SmeltingEnchantmentModifier(LootItemCondition[] conditionsIn)
  • 方法详细资料

    • doApply

      public it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context)
      从类复制的说明: LootModifier
      Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).
      指定者:
      doApply 在类中 LootModifier
      参数:
      generatedLoot - the list of ItemStacks that will be dropped, generated by loot tables
      context - the LootContext, identical to what is passed to loot tables
      返回:
      modified loot drops
    • smelt

      private static ItemStack smelt(ItemStack stack, LootContext context)
    • codec

      public com.mojang.serialization.MapCodec<? extends IGlobalLootModifier> codec()
      从接口复制的说明: IGlobalLootModifier
      Returns the registered codec for this modifier