类 SetItemDamageFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetItemDamageFunction
- 所有已实现的接口:
BiFunction<ItemStack,
,LootContext, ItemStack> LootItemFunction
,LootContextUser
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.Builder<T extends LootItemConditionalFunction.Builder<T>>, LootItemConditionalFunction.DummyBuilder
-
字段概要
字段修饰符和类型字段说明private final boolean
static final com.mojang.serialization.MapCodec
<SetItemDamageFunction> private final NumberProvider
private static final org.slf4j.Logger
从类继承的字段 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
构造器概要
构造器限定符构造器说明private
SetItemDamageFunction
(List<LootItemCondition> p_300823_, NumberProvider p_165428_, boolean p_165429_) -
方法概要
修饰符和类型方法说明Set
<ContextKey<?>> getType()
run
(ItemStack p_81048_, LootContext p_81049_) static LootItemConditionalFunction.Builder
<?> setDamage
(NumberProvider p_165431_) static LootItemConditionalFunction.Builder
<?> setDamage
(NumberProvider p_165433_, boolean p_165434_) 从类继承的方法 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
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CODEC
-
damage
-
add
private final boolean add
-
-
构造器详细资料
-
SetItemDamageFunction
private SetItemDamageFunction(List<LootItemCondition> p_300823_, NumberProvider p_165428_, boolean p_165429_)
-
-
方法详细资料
-
getType
- 指定者:
getType
在接口中LootItemFunction
- 指定者:
getType
在类中LootItemConditionalFunction
-
getReferencedContextParams
-
run
- 指定者:
run
在类中LootItemConditionalFunction
-
setDamage
-
setDamage
public static LootItemConditionalFunction.Builder<?> setDamage(NumberProvider p_165433_, boolean p_165434_)
-