Uses of Record Class
net.minecraft.world.item.enchantment.ConditionalEffect
-
Uses of ConditionalEffect in net.minecraft.world.item.enchantment
Modifier and TypeFieldDescriptionstatic final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.AMMO_USE
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.ARMOR_EFFECTIVENESS
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.BLOCK_EXPERIENCE
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.DAMAGE
static final DataComponentType
<List<ConditionalEffect<DamageImmunity>>> EnchantmentEffectComponents.DAMAGE_IMMUNITY
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.DAMAGE_PROTECTION
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.FISHING_LUCK_BONUS
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.FISHING_TIME_REDUCTION
static final DataComponentType
<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.HIT_BLOCK
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.ITEM_DAMAGE
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.KNOCKBACK
static final DataComponentType
<List<ConditionalEffect<EnchantmentLocationBasedEffect>>> EnchantmentEffectComponents.LOCATION_CHANGED
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.MOB_EXPERIENCE
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_COUNT
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_PIERCING
static final DataComponentType
<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.PROJECTILE_SPAWNED
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.PROJECTILE_SPREAD
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.REPAIR_WITH_XP
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.SMASH_DAMAGE_PER_FALLEN_BLOCK
static final DataComponentType
<List<ConditionalEffect<EnchantmentEntityEffect>>> EnchantmentEffectComponents.TICK
static final DataComponentType
<List<ConditionalEffect<EnchantmentValueEffect>>> EnchantmentEffectComponents.TRIDENT_RETURN_ACCELERATION
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec
<ConditionalEffect<T>> ConditionalEffect.codec
(com.mojang.serialization.Codec<T> p_345918_, LootContextParamSet p_344884_) Modifier and TypeMethodDescriptionprivate static <T> void
Enchantment.applyEffects
(List<ConditionalEffect<T>> p_345860_, LootContext p_345578_, Consumer<T> p_346164_) private void
Enchantment.modifyDamageFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345367_, ServerLevel p_345784_, int p_344796_, ItemStack p_345410_, Entity p_345673_, DamageSource p_345768_, org.apache.commons.lang3.mutable.MutableFloat p_345664_) private void
Enchantment.modifyEntityFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345986_, ServerLevel p_345473_, int p_345352_, ItemStack p_345076_, Entity p_345170_, org.apache.commons.lang3.mutable.MutableFloat p_345910_) private void
Enchantment.modifyItemFilteredCount
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345794_, ServerLevel p_345992_, int p_345038_, ItemStack p_345886_, org.apache.commons.lang3.mutable.MutableFloat p_345188_) Enchantment.Builder.withEffect
(DataComponentType<List<ConditionalEffect<E>>> p_345254_, E p_346178_) Enchantment.Builder.withEffect
(DataComponentType<List<ConditionalEffect<E>>> p_345261_, E p_346342_, LootItemCondition.Builder p_344864_)