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
Modifier and TypeFieldDescriptionprivate final boolean
private final com.google.common.collect.ImmutableMap.Builder<Holder<Enchantment>,
NumberProvider> -
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.predicates.ConditionUserBuilder
when
-
Field Details
-
enchantments
private final com.google.common.collect.ImmutableMap.Builder<Holder<Enchantment>,NumberProvider> 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
-