类 GlobalLootModifiersTest.DungeonLootEnhancerModifier

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

private static class GlobalLootModifiersTest.DungeonLootEnhancerModifier extends LootModifier
  • 字段详细资料

  • 构造器详细资料

    • DungeonLootEnhancerModifier

      public DungeonLootEnhancerModifier(LootItemCondition[] conditionsIn, int multiplicationFactor)
  • 方法详细资料

    • doApply

      protected 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
    • codec

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