net.minecraft.world.level.block

public class TargetBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

dog
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(dcw arg0, dtc arg1, ewy arg2, cnp 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(dcx arg0, dtc arg1, ewy arg2, bsr 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(ewy arg0, exc 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(dcx arg0, dtc arg1, int arg2, jd 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(dtc arg0, aqu arg1, jd arg2, ayw 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(dtc arg0, dcc arg1, jd arg2, ji 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_(dtc arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
m_7899_(C_2064_ arg0)
protected void
a(dtd$a<dfy, dtc> 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(dtc arg0, dcw arg1, jd arg2, dtc 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)