net.minecraft.block

public class TargetBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

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

Field summary

Modifier and TypeField
private static final IntProperty
OUTPUT_POWER
field_22428
POWER
private static final int
ACTIVATION_TICKS_ARROWS
field_31263
RECOVERABLE_POWER_DELAY
private static final int
ACTIVATION_TICKS_OTHER
field_31264
REGULAR_POWER_DELAY

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
protected void
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)
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)
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)
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)
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)
method_1_5240(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2)
protected boolean
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
protected void
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)
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)