net.minecraft.world.level.block

public class TargetBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

dni
net.minecraft.world.level.block.TargetBlock
net.minecraft.class_4850
net.minecraft.block.TargetBlock
net.minecraft.src.C_1939_
net.minecraft.world.level.block.BlockTarget

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<TargetBlock>
a
CODEC
field_46472
CODEC
f_302261_
private static final IntegerProperty
b
OUTPUT_POWER
field_22428
POWER
f_57376_
private static final int
c
ACTIVATION_TICKS_ARROWS
field_31263
RECOVERABLE_POWER_DELAY
f_154777_
private static final int
d
ACTIVATION_TICKS_OTHER
field_31264
REGULAR_POWER_DELAY
f_154778_

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TargetBlock>
a()
codec()
method_53969()
getCodec()
m_304657_()
protected void
a(dca arg0, dse arg1, evp arg2, cnr arg3)
onProjectileHit(Level arg0, BlockState arg1, BlockHitResult arg2, Projectile arg3)
method_19286(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1676 arg3)
onProjectileHit(World arg0, BlockState arg1, BlockHitResult arg2, ProjectileEntity arg3)
m_5581_(C_1596_ p_57382_, C_2064_ p_57383_, C_3041_ p_57384_, C_1167_ arg3)
private static int
a(dcb arg0, dse arg1, evp arg2, bsw arg3)
updateRedstoneOutput(LevelAccessor arg0, BlockState arg1, BlockHitResult arg2, Entity arg3)
method_24858(class_1936 arg0, class_2680 arg1, class_3965 arg2, class_1297 arg3)
trigger(WorldAccess world, BlockState state, BlockHitResult hitResult, Entity entity)
m_57391_(C_1598_ p_57392_, C_2064_ p_57393_, C_3041_ p_57394_, C_507_ p_57395_)
private static int
a(evp arg0, evt arg1)
getRedstoneStrength(BlockHitResult arg0, Vec3 arg1)
method_24859(class_3965 arg0, class_243 arg1)
calculatePower(BlockHitResult hitResult, Vec3d pos)
m_57408_(C_3041_ p_57409_, C_3046_ p_57410_)
private static void
a(dcb arg0, dse arg1, int arg2, iz arg3, int arg4)
setOutputPower(LevelAccessor arg0, BlockState arg1, int arg2, BlockPos arg3, int arg4)
method_24857(class_1936 arg0, class_2680 arg1, int arg2, class_2338 arg3, int arg4)
setPower(WorldAccess world, BlockState state, int power, BlockPos pos, int delay)
m_57385_(C_1598_ p_57386_, C_2064_ p_57387_, int p_57388_, C_4675_ p_57389_, int p_57390_)
protected void
a(dse arg0, arf arg1, iz arg2, azh arg3)
tick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
m_213897_(C_2064_ p_222589_, C_12_ p_222590_, C_4675_ p_222591_, C_212974_ arg3)
protected int
a(dse arg0, dbg arg1, iz arg2, je arg3)
getSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
m_6378_(C_2064_ p_57403_, C_1559_ p_57404_, C_4675_ p_57405_, C_4687_ arg3)
protected boolean
e_(dse arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
m_7899_(C_2064_ arg0)
protected void
a(dsf$a<dfb, dse> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
protected void
b(dse arg0, dca arg1, iz arg2, dse arg3, boolean arg4)
onPlace(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
m_6807_(C_2064_ p_57413_, C_1596_ p_57414_, C_4675_ p_57415_, C_2064_ p_57416_, boolean arg4)