net.minecraft.world.item.enchantment

public interface EnchantmentEffectComponents

dea
net.minecraft.world.item.enchantment.EnchantmentEffectComponents
net.minecraft.class_9701
net.minecraft.component.EnchantmentEffectComponentTypes
net.minecraft.world.item.enchantment.EnchantmentEffectComponents

Field summary

Modifier and TypeField
com.mojang.serialization.Codec<DataComponentType<?>>
a
COMPONENT_CODEC
field_51657
COMPONENT_TYPE_CODEC
com.mojang.serialization.Codec<DataComponentMap>
b
CODEC
field_51658
COMPONENT_MAP_CODEC
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
c
DAMAGE_PROTECTION
field_51659
DAMAGE_PROTECTION
DataComponentType<List<ConditionalEffect<DamageImmunity>>>
d
DAMAGE_IMMUNITY
field_51660
DAMAGE_IMMUNITY
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
e
DAMAGE
field_51661
DAMAGE
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
f
SMASH_DAMAGE_PER_FALLEN_BLOCK
field_51662
SMASH_DAMAGE_PER_FALLEN_BLOCK
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
g
KNOCKBACK
field_51663
KNOCKBACK
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
h
ARMOR_EFFECTIVENESS
field_51664
ARMOR_EFFECTIVENESS
DataComponentType<List<TargetedConditionalEffect<EnchantmentEntityEffect>>>
i
POST_ATTACK
field_51665
POST_ATTACK
DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>>
j
HIT_BLOCK
field_51666
HIT_BLOCK
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
k
ITEM_DAMAGE
field_51667
ITEM_DAMAGE
DataComponentType<List<EnchantmentAttributeEffect>>
l
ATTRIBUTES
field_51668
ATTRIBUTES
DataComponentType<List<TargetedConditionalEffect<EnchantmentValueEffect>>>
m
EQUIPMENT_DROPS
field_51669
EQUIPMENT_DROPS
DataComponentType<List<ConditionalEffect<EnchantmentLocationBasedEffect>>>
n
LOCATION_CHANGED
field_51670
LOCATION_CHANGED
DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>>
o
TICK
field_51671
TICK
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
p
AMMO_USE
field_51672
AMMO_USE
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
q
PROJECTILE_PIERCING
field_51673
PROJECTILE_PIERCING
DataComponentType<List<ConditionalEffect<EnchantmentEntityEffect>>>
r
PROJECTILE_SPAWNED
field_51674
PROJECTILE_SPAWNED
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
s
PROJECTILE_SPREAD
field_51675
PROJECTILE_SPREAD
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
t
PROJECTILE_COUNT
field_51676
PROJECTILE_COUNT
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
u
TRIDENT_RETURN_ACCELERATION
field_51678
TRIDENT_RETURN_ACCELERATION
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
v
FISHING_TIME_REDUCTION
field_51679
FISHING_TIME_REDUCTION
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
w
FISHING_LUCK_BONUS
field_51680
FISHING_LUCK_BONUS
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
x
BLOCK_EXPERIENCE
field_51681
BLOCK_EXPERIENCE
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
y
MOB_EXPERIENCE
field_51682
MOB_EXPERIENCE
DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>>
z
REPAIR_WITH_XP
field_51652
REPAIR_WITH_XP
DataComponentType<EnchantmentValueEffect>
A
CROSSBOW_CHARGE_TIME
field_51677
CROSSBOW_CHARGE_TIME
DataComponentType<List<CrossbowItem$ChargingSounds>>
B
CROSSBOW_CHARGING_SOUNDS
field_51653
CROSSBOW_CHARGING_SOUNDS
DataComponentType<List<Holder<SoundEvent>>>
C
TRIDENT_SOUND
field_51654
TRIDENT_SOUND
DataComponentType<Unit>
D
PREVENT_EQUIPMENT_DROP
field_51655
PREVENT_EQUIPMENT_DROP
DataComponentType<Unit>
E
PREVENT_ARMOR_CHANGE
field_51656
PREVENT_ARMOR_CHANGE
DataComponentType<EnchantmentValueEffect>
F
TRIDENT_SPIN_ATTACK_STRENGTH
field_51651
TRIDENT_SPIN_ATTACK_STRENGTH

Method summary

Modifier and TypeMethod
static DataComponentType<?>
a(kd<kt<?>> arg0)
bootstrap(Registry<DataComponentType<?>> arg0)
method_60079(class_2378<class_9331<?>> arg0)
getDefault(Registry<ComponentType<?>> registry)
private static <T> DataComponentType<T>
a(String arg0, UnaryOperator<kt$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)