类 GlobalLootModifiersTest.SmeltingEnchantmentModifier
java.lang.Object
net.neoforged.neoforge.common.loot.LootModifier
net.neoforged.neoforge.debug.loot.GlobalLootModifiersTest.SmeltingEnchantmentModifier
- 所有已实现的接口:
IGlobalLootModifier
The smelting enchantment causes this modifier to be invoked, via the smelting loot_modifier json
-
字段概要
字段修饰符和类型字段说明static final Supplier
<com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SmeltingEnchantmentModifier>> 从类继承的字段 net.neoforged.neoforge.common.loot.LootModifier
conditions
从接口继承的字段 net.neoforged.neoforge.common.loot.IGlobalLootModifier
CONDITIONAL_CODEC, DIRECT_CODEC, LOOT_CONDITIONS_CODEC
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明com.mojang.serialization.MapCodec
<? extends IGlobalLootModifier> codec()
Returns the registered codec for this modifierit.unimi.dsi.fastutil.objects.ObjectArrayList
<ItemStack> doApply
(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).private static ItemStack
smelt
(ItemStack stack, LootContext context) 从类继承的方法 net.neoforged.neoforge.common.loot.LootModifier
apply, codecStart
-
字段详细资料
-
CODEC
public static final Supplier<com.mojang.serialization.MapCodec<GlobalLootModifiersTest.SmeltingEnchantmentModifier>> CODEC
-
-
构造器详细资料
-
SmeltingEnchantmentModifier
-
-
方法详细资料
-
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 tablescontext
- the LootContext, identical to what is passed to loot tables- 返回:
- modified loot drops
-
smelt
-
codec
从接口复制的说明:IGlobalLootModifier
Returns the registered codec for this modifier
-