net.minecraft.world.level.block

public class TargetBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

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

Field summary

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

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TargetBlock>
a()
codec()
method_53969()
getCodec()
protected void
a(dgj arg0, dwy arg1, fax arg2, cpr 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)
private static int
a(dgk arg0, dwy arg1, fax arg2, bum 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)
private static int
a(fax arg0, fbb arg1)
getRedstoneStrength(BlockHitResult arg0, Vec3 arg1)
method_24859(class_3965 arg0, class_243 arg1)
calculatePower(BlockHitResult hitResult, Vec3d pos)
private static void
a(dgk arg0, dwy arg1, int arg2, ji 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)
protected void
a(dwy arg0, ard arg1, ji 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)
protected int
a(dwy arg0, dfo arg1, ji arg2, jn 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)
protected boolean
f_(dwy arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
protected void
a(dwz$a<djn, dwy> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected void
b(dwy arg0, dgj arg1, ji arg2, dwy 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)