net.minecraft.enchantment.effect.entity

public record ReplaceDiskEnchantmentEffect

implements EnchantmentEntityEffect

net.minecraft.world.item.enchantment.effects.ReplaceDisk
net.minecraft.class_9730
net.minecraft.enchantment.effect.entity.ReplaceDiskEnchantmentEffect

Field summary

Modifier and TypeField
private final EnchantmentLevelBasedValue
radius
comp_2742
radius
private final EnchantmentLevelBasedValue
height
comp_2743
height
private final Vec3i
offset
comp_2744
offset
private final Optional<BlockPredicate>
predicate
comp_2745
predicate
private final BlockStateProvider
blockState
comp_2746
blockState
private final Optional<RegistryEntry<GameEvent>>
triggerGameEvent
comp_2799
triggerGameEvent
public static final com.mojang.serialization.MapCodec<ReplaceDiskEnchantmentEffect>
CODEC
field_51716
CODEC

Constructor summary

ModifierConstructor
public (EnchantmentLevelBasedValue radius, EnchantmentLevelBasedValue height, Vec3i offset, Optional<BlockPredicate> predicate, BlockStateProvider blockState, Optional<RegistryEntry<GameEvent>> triggerGameEvent)

Method summary

Modifier and TypeMethod
public void
apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position)
method_60220(class_3218 arg0, int arg1, class_9699 arg2, class_1297 arg3, class_243 arg4)
apply(ServerWorld arg0, int arg1, EnchantmentEffectContext arg2, Entity arg3, Vec3d arg4)
public com.mojang.serialization.MapCodec<ReplaceDiskEnchantmentEffect>
codec()
method_60219()
getCodec()
public EnchantmentLevelBasedValue
radius()
comp_2742()
radius()
public EnchantmentLevelBasedValue
height()
comp_2743()
height()
public Vec3i
offset()
comp_2744()
offset()
public Optional<BlockPredicate>
predicate()
comp_2745()
predicate()
public BlockStateProvider
blockState()
comp_2746()
blockState()
public Optional<RegistryEntry<GameEvent>>
triggerGameEvent()
comp_2799()
triggerGameEvent()
private static void
lambda$apply$1(ServerLevel arg0, Entity arg1, BlockPos arg2, Holder arg3)
method_60508(class_3218 arg0, class_1297 arg1, class_2338 arg2, class_6880 arg3)
method_60508(ServerWorld arg0, Entity arg1, BlockPos arg2, RegistryEntry gameEvent)
private static Boolean
lambda$apply$0(ServerLevel arg0, BlockPos arg1, BlockPredicate arg2)
method_60244(class_3218 arg0, class_2338 arg1, class_6646 arg2)
method_60244(ServerWorld arg0, BlockPos arg1, BlockPredicate predicate)
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_60245(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_60245(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)