Class 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
- All Implemented Interfaces:
LootItemFunction.Builder
,ConditionUserBuilder<SetEnchantmentsFunction.Builder>
- Enclosing class:
- SetEnchantmentsFunction
public static class SetEnchantmentsFunction.Builder
extends LootItemConditionalFunction.Builder<SetEnchantmentsFunction.Builder>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected SetEnchantmentsFunction.Builder
getThis()
withEnchantment(Enchantment p_165375_, NumberProvider p_165376_)
Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder
getConditions, unwrap, when
-
Field Details
-
enchantments
-
add
private final boolean add
-
-
Constructor Details
-
Builder
public Builder() -
Builder
public Builder(boolean p_165372_)
-
-
Method Details
-
getThis
- Specified by:
getThis
in classLootItemConditionalFunction.Builder<SetEnchantmentsFunction.Builder>
-
withEnchantment
public SetEnchantmentsFunction.Builder withEnchantment(Enchantment p_165375_, NumberProvider p_165376_) -
build
-