net.minecraft.world.item.enchantment

public interface EnchantmentEffectComponents

dad
net.minecraft.world.item.enchantment.EnchantmentEffectComponents
net.minecraft.class_9701
net.minecraft.component.EnchantmentEffectComponentTypes
net.minecraft.src.C_336480_
net.minecraft.world.item.enchantment.EnchantmentEffectComponents

Field summary

Modifier and TypeField
com.mojang.serialization.Codec<DataComponentType<?>>
a
COMPONENT_CODEC
field_51657
COMPONENT_TYPE_CODEC
f_337677_
com.mojang.serialization.Codec<DataComponentMap>
b
CODEC
field_51658
COMPONENT_MAP_CODEC
f_337588_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
c
DAMAGE_PROTECTION
field_51659
DAMAGE_PROTECTION
f_337120_
DataComponentType<List<ConditionalEffect<DamageImmunity>>>
d
DAMAGE_IMMUNITY
field_51660
DAMAGE_IMMUNITY
f_337071_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
e
DAMAGE
field_51661
DAMAGE
f_336808_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
f
SMASH_DAMAGE_PER_FALLEN_BLOCK
field_51662
SMASH_DAMAGE_PER_FALLEN_BLOCK
f_336648_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
g
KNOCKBACK
field_51663
KNOCKBACK
f_336652_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
h
ARMOR_EFFECTIVENESS
field_51664
ARMOR_EFFECTIVENESS
f_337003_
DataComponentType<List<TargetedConditionalEffect<EnchantmentEntityEffect>>>
i
POST_ATTACK
field_51665
POST_ATTACK
f_337512_
DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>>
j
HIT_BLOCK
field_51666
HIT_BLOCK
f_337526_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
k
ITEM_DAMAGE
field_51667
ITEM_DAMAGE
f_336904_
DataComponentType<List<EnchantmentAttributeEffect>>
l
ATTRIBUTES
field_51668
ATTRIBUTES
f_337300_
DataComponentType<List<TargetedConditionalEffect<EnchantmentValueEffect>>>
m
EQUIPMENT_DROPS
field_51669
EQUIPMENT_DROPS
f_336866_
DataComponentType<List<ConditionalEffect<EnchantmentLocationBasedEffect>>>
n
LOCATION_CHANGED
field_51670
LOCATION_CHANGED
f_337527_
DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>>
o
TICK
field_51671
TICK
f_336723_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
p
AMMO_USE
field_51672
AMMO_USE
f_337385_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
q
PROJECTILE_PIERCING
field_51673
PROJECTILE_PIERCING
f_337536_
DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>>
r
PROJECTILE_SPAWNED
field_51674
PROJECTILE_SPAWNED
f_336685_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
s
PROJECTILE_SPREAD
field_51675
PROJECTILE_SPREAD
f_336697_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
t
PROJECTILE_COUNT
field_51676
PROJECTILE_COUNT
f_336729_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
u
TRIDENT_RETURN_ACCELERATION
field_51678
TRIDENT_RETURN_ACCELERATION
f_336727_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
v
FISHING_TIME_REDUCTION
field_51679
FISHING_TIME_REDUCTION
f_337049_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
w
FISHING_LUCK_BONUS
field_51680
FISHING_LUCK_BONUS
f_336735_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
x
BLOCK_EXPERIENCE
field_51681
BLOCK_EXPERIENCE
f_336894_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
y
MOB_EXPERIENCE
field_51682
MOB_EXPERIENCE
f_337738_
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
z
REPAIR_WITH_XP
field_51652
REPAIR_WITH_XP
f_337452_
DataComponentType<EnchantmentValueEffect>
A
CROSSBOW_CHARGE_TIME
field_51677
CROSSBOW_CHARGE_TIME
f_336604_
DataComponentType<List<CrossbowItem$ChargingSounds>>
B
CROSSBOW_CHARGING_SOUNDS
field_51653
CROSSBOW_CHARGING_SOUNDS
f_337250_
DataComponentType<List<Holder<SoundEvent>>>
C
TRIDENT_SOUND
field_51654
TRIDENT_SOUND
f_336670_
DataComponentType<Unit>
D
PREVENT_EQUIPMENT_DROP
field_51655
PREVENT_EQUIPMENT_DROP
f_337159_
DataComponentType<Unit>
E
PREVENT_ARMOR_CHANGE
field_51656
PREVENT_ARMOR_CHANGE
f_337286_
DataComponentType<EnchantmentValueEffect>
F
TRIDENT_SPIN_ATTACK_STRENGTH
field_51651
TRIDENT_SPIN_ATTACK_STRENGTH
f_337143_

Method summary

Modifier and TypeMethod
static DataComponentType<?>
a(jz<kp<?>> arg0)
bootstrap(Registry<DataComponentType<?>> arg0)
method_60079(class_2378<class_9331<?>> arg0)
getDefault(Registry<ComponentType<?>> registry)
m_340296_(C_4705_<C_313543_<?>> p_342462_)
private static <T> DataComponentType<T>
a(String arg0, UnaryOperator<kp$a<T>> arg1)
register(String arg0, UnaryOperator<DataComponentType$Builder<T>> arg1)
method_60078(String arg0, UnaryOperator<class_9331$class_9332<T>> arg1)
register(String id, UnaryOperator<ComponentType$Builder<T>> builderOperator)
m_338438_(String p_342959_, UnaryOperator<C_313543_$C_313821_<T>> p_345175_)