net.minecraft.world.item.enchantment.effects

public record ReplaceBlock

implements EnchantmentEntityEffect

dba
net.minecraft.world.item.enchantment.effects.ReplaceBlock
net.minecraft.class_9729
net.minecraft.enchantment.effect.entity.ReplaceBlockEnchantmentEffect
net.minecraft.src.C_336497_
net.minecraft.world.item.enchantment.effects.ReplaceBlock

Field summary

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

Constructor summary

ModifierConstructor
public (Vec3i predicate, Optional<BlockPredicate> blockState, BlockStateProvider triggerGameEvent, Optional<Holder<GameEvent>> arg3)

Method summary

Modifier and TypeMethod
public void
a(aqu arg0, int arg1, dab arg2, bsr arg3, exc 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)
m_338607_(C_12_ p_342438_, int p_343971_, C_336528_ p_343494_, C_507_ p_342839_, C_3046_ arg4)
public com.mojang.serialization.MapCodec<ReplaceBlock>
a()
codec()
method_60219()
getCodec()
m_338403_()
public Vec3i
b()
offset()
comp_2739()
offset()
f_336873_()
public Optional<BlockPredicate>
c()
predicate()
comp_2740()
predicate()
f_337078_()
public BlockStateProvider
d()
blockState()
comp_2741()
blockState()
f_336614_()
public Optional<Holder<GameEvent>>
e()
triggerGameEvent()
comp_2798()
triggerGameEvent()
f_336970_()