net.minecraft.block

public class TargetBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.TargetBlock
net.minecraft.world.level.block.TargetBlock
net.minecraft.class_4850
net.minecraft.block.TargetBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<TargetBlock>
CODEC
CODEC
field_46472
CODEC
private static final IntProperty
OUTPUT_POWER
OUTPUT_POWER
field_22428
POWER
private static final int
ACTIVATION_TICKS_ARROWS
ACTIVATION_TICKS_ARROWS
field_31263
RECOVERABLE_POWER_DELAY
private static final int
ACTIVATION_TICKS_OTHER
ACTIVATION_TICKS_OTHER
field_31264
REGULAR_POWER_DELAY

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TargetBlock>
codec()
codec()
method_53969()
getCodec()
protected void
onProjectileHit(Level level, BlockState state, BlockHitResult hitResult, Projectile projectile)
onProjectileHit(Level level, BlockState state, BlockHitResult hitResult, Projectile projectile)
method_19286(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1676 arg3)
onProjectileHit(World arg0, BlockState arg1, BlockHitResult arg2, ProjectileEntity arg3)
private static int
updateRedstoneOutput(LevelAccessor level, BlockState state, BlockHitResult hitResult, Entity entity)
updateRedstoneOutput(LevelAccessor level, BlockState state, BlockHitResult hitResult, Entity entity)
method_24858(class_1936 arg0, class_2680 arg1, class_3965 arg2, class_1297 arg3)
trigger(WorldAccess world, BlockState state, BlockHitResult hitResult, Entity entity)
private static int
getRedstoneStrength(BlockHitResult hitResult, Vec3 hitLocation)
getRedstoneStrength(BlockHitResult hitResult, Vec3 hitLocation)
method_24859(class_3965 arg0, class_243 arg1)
calculatePower(BlockHitResult hitResult, Vec3d pos)
private static void
setOutputPower(LevelAccessor level, BlockState state, int outputStrength, BlockPos pos, int duration)
setOutputPower(LevelAccessor level, BlockState state, int outputStrength, BlockPos pos, int duration)
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)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected int
ownSignal(BlockState state, BlockGetter level, BlockPos pos)
ownSignal(BlockState state, BlockGetter level, BlockPos pos)
method_1_5240(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2)
protected boolean
isSignalSource(BlockState state)
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected void
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
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)