net.minecraft.block

public class DetectorRailBlock

extends AbstractRailBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Waterloggable, FluidDrainable, FluidFillable

net.minecraft.world.level.block.DetectorRailBlock
net.minecraft.world.level.block.DetectorRailBlock
net.minecraft.class_2313
net.minecraft.block.DetectorRailBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<DetectorRailBlock>
CODEC
CODEC
field_46334
CODEC
public static final EnumProperty<RailShape>
SHAPE
SHAPE
field_10914
SHAPE
public static final BooleanProperty
POWERED
POWERED
field_10913
POWERED
private static final int
PRESSED_CHECK_PERIOD
PRESSED_CHECK_PERIOD
field_31081
SCHEDULED_TICK_DELAY

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<DetectorRailBlock>
codec()
codec()
method_53969()
getCodec()
protected boolean
isSignalSource(BlockState state)
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
protected void
entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3, class_10774 arg4, boolean arg5)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3, EntityCollisionHandler arg4, boolean arg5)
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
getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected int
getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
private void
checkPressed(Level level, BlockPos pos, BlockState state)
checkPressed(Level level, BlockPos pos, BlockState state)
method_10002(class_1937 arg0, class_2338 arg1, class_2680 arg2)
updatePoweredStatus(World world, BlockPos pos, BlockState state)
protected void
updatePowerToConnected(Level level, BlockPos pos, BlockState state, boolean powered)
updatePowerToConnected(Level level, BlockPos pos, BlockState state, boolean powered)
method_10003(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
updateNearbyRails(World world, BlockPos pos, BlockState state, boolean unpowering)
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)
public Property<RailShape>
getShapeProperty()
getShapeProperty()
method_9474()
getShapeProperty()
protected boolean
hasAnalogOutputSignal(BlockState state)
hasAnalogOutputSignal(BlockState state)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2, Direction arg3)
private <T extends AbstractMinecartEntity> List<T>
getInteractingMinecartOfType(Level level, BlockPos pos, Class<T> type, Predicate<Entity> containerEntitySelector)
getInteractingMinecartOfType(Level level, BlockPos pos, Class<T> type, Predicate<Entity> containerEntitySelector)
method_10001(class_1937 arg0, class_2338 arg1, Class<T> arg2, Predicate<class_1297> arg3)
getCarts(World world, BlockPos pos, Class<T> entityClass, Predicate<Entity> entityPredicate)
private Box
getSearchBB(BlockPos pos)
getSearchBB(BlockPos pos)
method_10004(class_2338 arg0)
getCartDetectionBox(BlockPos pos)
protected BlockState
rotate(BlockState state, Rotation rotation)
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
mirror(BlockState state, Mirror mirror)
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
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)