net.minecraft.world.level.block

public class DetectorRailBlock

extends BaseRailBlock

All mapped superinterfaces:

FeatureElement, ItemLike, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

dnw
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>
b
CODEC
field_46334
CODEC
public static final EnumProperty<RailShape>
c
SHAPE
field_10914
SHAPE
public static final BooleanProperty
d
POWERED
field_10913
POWERED
private static final int
e
PRESSED_CHECK_PERIOD
field_31081
SCHEDULED_TICK_DELAY

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<DetectorRailBlock>
a()
codec()
method_53969()
getCodec()
protected boolean
f_(dzo arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
protected void
a(dzo arg0, dip arg1, iu arg2, bwa arg3)
entityInside(BlockState arg0, Level arg1, BlockPos arg2, Entity arg3)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3)
protected void
a(dzo arg0, aro arg1, iu arg2, azt 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(dzo arg0, dhv arg1, iu arg2, ja 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 int
b(dzo arg0, dhv arg1, iu arg2, ja arg3)
getDirectSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
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
a(dip arg0, iu arg1, dzo arg2)
checkPressed(Level arg0, BlockPos arg1, BlockState arg2)
method_10002(class_1937 arg0, class_2338 arg1, class_2680 arg2)
updatePoweredStatus(World world, BlockPos pos, BlockState state)
protected void
b(dip arg0, iu arg1, dzo arg2, boolean arg3)
updatePowerToConnected(Level arg0, BlockPos arg1, BlockState arg2, boolean arg3)
method_10003(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
updateNearbyRails(World world, BlockPos pos, BlockState state, boolean unpowering)
protected void
a(dzo arg0, dip arg1, iu arg2, dzo 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)
public Property<RailShape>
c()
getShapeProperty()
method_9474()
getShapeProperty()
protected boolean
c_(dzo arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
a(dzo arg0, dip arg1, iu arg2)
getAnalogOutputSignal(BlockState arg0, Level arg1, BlockPos arg2)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2)
private <T extends AbstractMinecart> List<T>
a(dip arg0, iu arg1, Class<T> arg2, Predicate<bwa> arg3)
getInteractingMinecartOfType(Level arg0, BlockPos arg1, Class<T> arg2, Predicate<Entity> arg3)
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 AABB
a(iu arg0)
getSearchBB(BlockPos arg0)
method_10004(class_2338 arg0)
getCartDetectionBox(BlockPos pos)
protected BlockState
a(dzo arg0, dsm arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
a(dzo arg0, dqv arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
protected void
a(dzp$a<dlu, dzo> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)