Uses of Record Class
net.minecraft.world.item.enchantment.ConditionalEffect
Packages that use ConditionalEffect
-
Uses of ConditionalEffect in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment with type parameters of type ConditionalEffectModifier 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
Methods in net.minecraft.world.item.enchantment that return types with arguments of type ConditionalEffectModifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec
<ConditionalEffect<T>> ConditionalEffect.codec
(com.mojang.serialization.Codec<T> pCodec, LootContextParamSet pParams) Method parameters in net.minecraft.world.item.enchantment with type arguments of type ConditionalEffectModifier and TypeMethodDescriptionstatic <T> void
Enchantment.applyEffects
(List<ConditionalEffect<T>> pEffects, LootContext pContext, Consumer<T> pApplier) void
Enchantment.modifyDamageFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> pComponentType, ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, org.apache.commons.lang3.mutable.MutableFloat pValue) void
Enchantment.modifyEntityFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> pComponentType, ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, org.apache.commons.lang3.mutable.MutableFloat pValue) void
Enchantment.modifyItemFilteredCount
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> pComponentType, ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, org.apache.commons.lang3.mutable.MutableFloat pValue) Enchantment.Builder.withEffect
(DataComponentType<List<ConditionalEffect<E>>> pComponentType, E pEffect) Enchantment.Builder.withEffect
(DataComponentType<List<ConditionalEffect<E>>> pComponentType, E pEffect, LootItemCondition.Builder pRequirements)