Class EnchantRandomlyFunction.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<EnchantRandomlyFunction.Builder>
net.minecraft.world.level.storage.loot.functions.EnchantRandomlyFunction.Builder
- All Implemented Interfaces:
LootItemFunction.Builder
,ConditionUserBuilder<EnchantRandomlyFunction.Builder>
- Enclosing class:
EnchantRandomlyFunction
public static class EnchantRandomlyFunction.Builder
extends LootItemConditionalFunction.Builder<EnchantRandomlyFunction.Builder>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected EnchantRandomlyFunction.Builder
getThis()
withEnchantment
(Holder<Enchantment> p_342993_) withOneOf
(HolderSet<Enchantment> p_344102_) 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
-
options
-
onlyCompatible
private boolean onlyCompatible
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getThis
- Specified by:
getThis
in classLootItemConditionalFunction.Builder<EnchantRandomlyFunction.Builder>
-
withEnchantment
-
withOneOf
-
allowingIncompatibleEnchantments
-
build
-