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
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final com.google.common.collect.ImmutableMap.Builder<Holder<Enchantment>, NumberProvider> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()protected SetEnchantmentsFunction.BuildergetThis()withEnchantment(Holder<Enchantment> p_342127_, NumberProvider p_165376_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder
getConditions, unwrap, whenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getThisin classLootItemConditionalFunction.Builder<SetEnchantmentsFunction.Builder>
-
withEnchantment
public SetEnchantmentsFunction.Builder withEnchantment(Holder<Enchantment> p_342127_, NumberProvider p_165376_) -
build
-