net.minecraft.block

public class PoweredRailBlock

extends AbstractRailBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Waterloggable, FluidDrainable, FluidFillable

net.minecraft.world.level.block.PoweredRailBlock
net.minecraft.world.level.block.PoweredRailBlock
net.minecraft.class_2442
net.minecraft.block.PoweredRailBlock

Field summary

Modifier and TypeField
public static final EnumProperty<RailShape>
SHAPE
SHAPE
field_11365
SHAPE
public static final BooleanProperty
POWERED
POWERED
field_11364
POWERED

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
protected boolean
findPoweredRailSignal(Level level, BlockPos pos, BlockState state, boolean forward, int searchDepth)
findPoweredRailSignal(Level level, BlockPos pos, BlockState state, boolean forward, int searchDepth)
method_10413(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3, int arg4)
isPoweredByOtherRails(World world, BlockPos pos, BlockState state, boolean arg3, int distance)
protected boolean
isSameRailWithPower(Level level, BlockPos pos, boolean forward, int searchDepth, RailShape dir)
isSameRailWithPower(Level level, BlockPos pos, boolean forward, int searchDepth, RailShape dir)
method_10414(class_1937 arg0, class_2338 arg1, boolean arg2, int arg3, class_2768 arg4)
isPoweredByOtherRails(World world, BlockPos pos, boolean arg2, int distance, RailShape shape)
protected void
updateState(BlockState state, Level level, BlockPos pos, Block block)
updateState(BlockState state, Level level, BlockPos pos, Block block)
method_9477(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3)
updateBlockState(BlockState arg0, World arg1, BlockPos arg2, Block arg3)
public Property<RailShape>
getShapeProperty()
getShapeProperty()
method_9474()
getShapeProperty()
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)