net.minecraft.world.item.enchantment.effects

public record ReplaceBlock

implements EnchantmentEntityEffect

dey
net.minecraft.world.item.enchantment.effects.ReplaceBlock
net.minecraft.class_9729
net.minecraft.enchantment.effect.entity.ReplaceBlockEnchantmentEffect
net.minecraft.world.item.enchantment.effects.ReplaceBlock

Field summary

Modifier and TypeField
private final Vec3i
d
offset
comp_2739
offset
private final Optional<BlockPredicate>
e
predicate
comp_2740
predicate
private final BlockStateProvider
f
blockState
comp_2741
blockState
private final Optional<Holder<GameEvent>>
g
triggerGameEvent
comp_2798
triggerGameEvent
public static final com.mojang.serialization.MapCodec<ReplaceBlock>
a
CODEC
field_51715
CODEC

Constructor summary

ModifierConstructor
public (Vec3i arg0, Optional<BlockPredicate> arg1, BlockStateProvider arg2, Optional<Holder<GameEvent>> arg3)

Method summary

Modifier and TypeMethod
public void
a(ash arg0, int arg1, ddy arg2, bvk arg3, fby arg4)
apply(ServerLevel arg0, int arg1, EnchantedItemInUse arg2, Entity arg3, Vec3 arg4)
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<ReplaceBlock>
a()
codec()
method_60219()
getCodec()
public Vec3i
b()
offset()
comp_2739()
offset()
public Optional<BlockPredicate>
c()
predicate()
comp_2740()
predicate()
public BlockStateProvider
d()
blockState()
comp_2741()
blockState()
public Optional<Holder<GameEvent>>
e()
triggerGameEvent()
comp_2798()
triggerGameEvent()