类 GlobalLootModifiersTest.SilkTouchTestModifier

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

private static class GlobalLootModifiersTest.SilkTouchTestModifier extends LootModifier
When harvesting blocks with bamboo, this modifier is invoked, via the silk_touch_bamboo loot_modifier json
  • 字段详细资料

  • 构造器详细资料

    • SilkTouchTestModifier

      public SilkTouchTestModifier(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
    • codec

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