类 SetEnchantmentsFunction.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<SetEnchantmentsFunction.Builder>
net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction.Builder
public static class SetEnchantmentsFunction.Builder
extends LootItemConditionalFunction.Builder<SetEnchantmentsFunction.Builder>
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()
protected SetEnchantmentsFunction.Builder
getThis()
withEnchantment
(Enchantment pEnchantment, NumberProvider pLevelProvider) 从类继承的方法 net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder
getConditions, unwrap, when
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.storage.loot.predicates.ConditionUserBuilder
when
-
字段详细资料
-
enchantments
-
add
private final boolean add
-
-
构造器详细资料
-
Builder
public Builder() -
Builder
public Builder(boolean pAdd)
-
-
方法详细资料
-
getThis
-
withEnchantment
public SetEnchantmentsFunction.Builder withEnchantment(Enchantment pEnchantment, NumberProvider pLevelProvider) -
build
-