net.minecraft.enchantment.effect

public interface EnchantmentLocationBasedEffect

net.minecraft.world.item.enchantment.effects.EnchantmentLocationBasedEffect
net.minecraft.world.item.enchantment.effects.EnchantmentLocationBasedEffect
net.minecraft.class_9722
net.minecraft.enchantment.effect.EnchantmentLocationBasedEffect

Field summary

Modifier and TypeField
com.mojang.serialization.Codec<EnchantmentLocationBasedEffect>
CODEC
CODEC
field_51708
CODEC

Method summary

Modifier and TypeMethod
static com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect>
bootstrap(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect>> registry)
bootstrap(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect>> registry)
method_60232(class_2378<com.mojang.serialization.MapCodec<? extends class_9722>> arg0)
registerAndGetDefault(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect>> registry)
void
onChangedBlock(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position, boolean becameActive)
onChangedBlock(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position, boolean becameActive)
method_60221(class_3218 arg0, int arg1, class_9699 arg2, class_1297 arg3, class_243 arg4, boolean arg5)
apply(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied)
default void
onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 position, int level)
onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 position, int level)
method_60222(class_9699 arg0, class_1297 arg1, class_243 arg2, int arg3)
remove(EnchantmentEffectContext context, Entity user, Vec3d pos, int level)
com.mojang.serialization.MapCodec<? extends EnchantmentLocationBasedEffect>
codec()
codec()
method_60219()
getCodec()