JavaScript is disabled on your browser.
java.lang.Object
org.moddingx.libx.datagen.provider.EnchantmentProviderBase.EnchantmentBuilder
Method Summary
All Methods Instance Methods Concrete Methods
addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value)
addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst)
addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value)
addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment>
conditionalEffect (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<T>>> type,
T value)
conditionalEffect (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<T>>> type,
T value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
cost (int base,
int extraPerAdditionalLevel)
effect (net.minecraft.core.component.DataComponentType<List <T>> type,
T value)
exclusiveSet (net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment>... exclusiveSet)
exclusiveSet (net.minecraft.core.HolderSet<net.minecraft.world.item.enchantment.Enchantment> exclusiveSet)
exclusiveSet (net.minecraft.tags.TagKey<net.minecraft.world.item.enchantment.Enchantment> exclusiveSet)
maxCost (int base,
int extraPerAdditionalLevel)
minCost (int base,
int extraPerAdditionalLevel)
multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value)
multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst)
multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value)
multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
onlyEffect (net.minecraft.core.component.DataComponentType<T> type,
T value)
primaryItems (net.minecraft.core.HolderSet<net.minecraft.world.item.Item> items)
primaryItems (net.minecraft.tags.TagKey<net.minecraft.world.item.Item> items)
removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value)
removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst)
removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value)
removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value)
replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst)
replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value)
replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value,
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
slot (net.minecraft.world.entity.EquipmentSlotGroup slot)
supportedItems (net.minecraft.core.HolderSet<net.minecraft.world.item.Item> items)
supportedItems (net.minecraft.tags.TagKey<net.minecraft.world.item.Item> items)
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Details
conditionalEffect
public <T>
EnchantmentProviderBase.EnchantmentBuilder conditionalEffect (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<T>>> type,
T value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
addValue
public EnchantmentProviderBase.EnchantmentBuilder addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value)
multiplyValue
public EnchantmentProviderBase.EnchantmentBuilder multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value)
replaceValue
public EnchantmentProviderBase.EnchantmentBuilder replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value)
removeBinomialValueValue
public EnchantmentProviderBase.EnchantmentBuilder removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value)
addValue
public EnchantmentProviderBase.EnchantmentBuilder addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
multiplyValue
public EnchantmentProviderBase.EnchantmentBuilder multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
replaceValue
public EnchantmentProviderBase.EnchantmentBuilder replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
removeBinomialValueValue
public EnchantmentProviderBase.EnchantmentBuilder removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
addValue
public EnchantmentProviderBase.EnchantmentBuilder addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst)
multiplyValue
public EnchantmentProviderBase.EnchantmentBuilder multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst)
replaceValue
public EnchantmentProviderBase.EnchantmentBuilder replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst)
removeBinomialValueValue
public EnchantmentProviderBase.EnchantmentBuilder removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst)
addValue
public EnchantmentProviderBase.EnchantmentBuilder addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
multiplyValue
public EnchantmentProviderBase.EnchantmentBuilder multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
replaceValue
public EnchantmentProviderBase.EnchantmentBuilder replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
removeBinomialValueValue
public EnchantmentProviderBase.EnchantmentBuilder removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
float base,
float extraPerLevelAboveFirst,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
addValue
public EnchantmentProviderBase.EnchantmentBuilder addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value)
multiplyValue
public EnchantmentProviderBase.EnchantmentBuilder multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value)
replaceValue
public EnchantmentProviderBase.EnchantmentBuilder replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value)
removeBinomialValueValue
public EnchantmentProviderBase.EnchantmentBuilder removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value)
addValue
public EnchantmentProviderBase.EnchantmentBuilder addValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
multiplyValue
public EnchantmentProviderBase.EnchantmentBuilder multiplyValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
replaceValue
public EnchantmentProviderBase.EnchantmentBuilder replaceValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
removeBinomialValueValue
public EnchantmentProviderBase.EnchantmentBuilder removeBinomialValueValue (net.minecraft.core.component.DataComponentType<List <net.minecraft.world.item.enchantment.ConditionalEffect<net.minecraft.world.item.enchantment.effects.EnchantmentValueEffect>>> type,
net.minecraft.world.item.enchantment.LevelBasedValue value,
@Nullable
net.minecraft.world.level.storage.loot.predicates.LootItemCondition condition)
build
public net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> build ()
Builds the
Enchantment
.
This method returns an intrusive holder
that must be properly
added the registry. RegistryProviderBase
does this automatically if the result is stored in a
public
, non-static
field inside the provider.