类 EnchantedCountIncreaseFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.EnchantedCountIncreaseFunction
- 所有已实现的接口:
BiFunction<ItemStack,
,LootContext, ItemStack> LootItemFunction
,LootContextUser
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.DummyBuilder
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<EnchantedCountIncreaseFunction> private final Holder
<Enchantment> private final int
static final int
private final NumberProvider
从类继承的字段 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
构造器概要
构造器构造器说明EnchantedCountIncreaseFunction
(List<LootItemCondition> p_344944_, Holder<Enchantment> p_345194_, NumberProvider p_344806_, int p_345432_) -
方法概要
修饰符和类型方法说明Set
<ContextKey<?>> getType()
private boolean
hasLimit()
lootingMultiplier
(HolderLookup.Provider p_344982_, NumberProvider p_345939_) run
(ItemStack p_345285_, LootContext p_345560_) 从类继承的方法 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, commonFields, simpleBuilder, validate
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.util.function.BiFunction
andThen
-
字段详细资料
-
NO_LIMIT
public static final int NO_LIMIT- 另请参阅:
-
CODEC
-
enchantment
-
value
-
limit
private final int limit
-
-
构造器详细资料
-
EnchantedCountIncreaseFunction
EnchantedCountIncreaseFunction(List<LootItemCondition> p_344944_, Holder<Enchantment> p_345194_, NumberProvider p_344806_, int p_345432_)
-
-
方法详细资料
-
getType
- 指定者:
getType
在接口中LootItemFunction
- 指定者:
getType
在类中LootItemConditionalFunction
-
getReferencedContextParams
-
hasLimit
private boolean hasLimit() -
run
- 指定者:
run
在类中LootItemConditionalFunction
-
lootingMultiplier
public static EnchantedCountIncreaseFunction.Builder lootingMultiplier(HolderLookup.Provider p_344982_, NumberProvider p_345939_)
-