net.minecraft.world.level.block

public abstract class BaseRailBlock

extends Block implements SimpleWaterloggedBlock

All mapped superinterfaces:

ItemLike, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

cco
net.minecraft.world.level.block.BaseRailBlock
net.minecraft.class_2241
net.minecraft.block.AbstractRailBlock
net.minecraft.src.C_1695_
net.minecraft.world.level.block.BlockMinecartTrackAbstract

Field summary

Modifier and TypeField
protected static final VoxelShape
a
FLAT_AABB
field_9958
STRAIGHT_SHAPE
f_49355_
protected static final VoxelShape
b
HALF_BLOCK_AABB
field_9960
ASCENDING_SHAPE
f_49356_
public static final BooleanProperty
c
WATERLOGGED
field_27096
WATERLOGGED
f_152149_
private final boolean
d
isStraight
field_9959
allowCurves
f_49357_

Constructor summary

ModifierConstructor
protected (boolean allowCurves, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public static boolean
a(cad arg0, gh arg1)
isRail(Level arg0, BlockPos arg1)
method_9479(class_1937 arg0, class_2338 arg1)
isRail(World world, BlockPos pos)
m_49364_(C_1596_ p_49365_, C_4675_ p_49366_)
public static boolean
g(coc arg0)
isRail(BlockState arg0)
method_9476(class_2680 arg0)
isRail(BlockState state)
m_49416_(C_2064_ p_49417_)
public boolean
c()
isStraight()
method_9478()
canMakeCurves()
m_49413_()
public VoxelShape
a(coc arg0, bzj arg1, gh arg2, dor arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
m_5940_(C_2064_ p_49404_, C_1559_ p_49405_, C_4675_ p_49406_, C_3051_ arg3)
public boolean
a(coc arg0, cag arg1, gh arg2)
canSurvive(BlockState arg0, LevelReader arg1, BlockPos arg2)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
m_7898_(C_2064_ p_49396_, C_1599_ p_49397_, C_4675_ arg2)
public void
b(coc arg0, cad arg1, gh arg2, coc 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)
m_6807_(C_2064_ p_49409_, C_1596_ p_49410_, C_4675_ p_49411_, C_2064_ p_49412_, boolean arg4)
protected BlockState
a(coc arg0, cad arg1, gh arg2, boolean arg3)
updateState(BlockState arg0, Level arg1, BlockPos arg2, boolean arg3)
method_24417(class_2680 arg0, class_1937 arg1, class_2338 arg2, boolean arg3)
updateCurves(BlockState state, World world, BlockPos pos, boolean notify)
m_49389_(C_2064_ p_49391_, C_1596_ p_49392_, C_4675_ p_49393_, boolean arg3)
public void
a(coc arg0, cad arg1, gh arg2, ccy arg3, gh arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, BlockPos arg4, boolean arg5)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_2338 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, BlockPos arg4, boolean arg5)
m_6861_(C_2064_ p_49378_, C_1596_ p_49379_, C_4675_ p_49380_, C_1706_ p_49381_, C_4675_ p_49382_, boolean arg5)
private static boolean
a(gh arg0, cad arg1, cph arg2)
shouldBeRemoved(BlockPos arg0, Level arg1, RailShape arg2)
method_27935(class_2338 arg0, class_1937 arg1, class_2768 arg2)
shouldDropRail(BlockPos pos, World world, RailShape shape)
m_49398_(C_4675_ p_49399_, C_1596_ p_49400_, C_2100_ p_49401_)
protected void
a(coc arg0, cad arg1, gh arg2, ccy arg3)
updateState(BlockState arg0, Level arg1, BlockPos arg2, Block arg3)
method_9477(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3)
updateBlockState(BlockState state, World world, BlockPos pos, Block neighbor)
m_6360_(C_2064_ p_49373_, C_1596_ p_49374_, C_4675_ p_49375_, C_1706_ arg3)
protected BlockState
a(cad arg0, gh arg1, coc arg2, boolean arg3)
updateDir(Level arg0, BlockPos arg1, BlockState arg2, boolean arg3)
method_9475(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
updateBlockState(World world, BlockPos pos, BlockState state, boolean forceUpdate)
m_49367_(C_1596_ p_49369_, C_4675_ p_49370_, C_2064_ p_49371_, boolean arg3)
public PushReaction
d(coc arg0)
getPistonPushReaction(BlockState arg0)
method_9527(class_2680 arg0)
getPistonBehavior(BlockState arg0)
m_5537_(C_2064_ arg0)
public void
a(coc arg0, cad arg1, gh arg2, coc arg3, boolean arg4)
onRemove(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9536(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
m_6810_(C_2064_ p_49385_, C_1596_ p_49386_, C_4675_ p_49387_, C_2064_ p_49388_, boolean arg4)
public BlockState
a(bwe arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
m_5573_(C_1445_ arg0)
public abstract Property<RailShape>
d()
getShapeProperty()
method_9474()
getShapeProperty()
m_7978_()
public BlockState
a(coc arg0, gm arg1, coc arg2, cae arg3, gh arg4, gh arg5)
updateShape(BlockState arg0, Direction arg1, BlockState arg2, LevelAccessor arg3, BlockPos arg4, BlockPos arg5)
method_9559(class_2680 arg0, class_2350 arg1, class_2680 arg2, class_1936 arg3, class_2338 arg4, class_2338 arg5)
getStateForNeighborUpdate(BlockState arg0, Direction arg1, BlockState arg2, WorldAccess arg3, BlockPos arg4, BlockPos arg5)
m_7417_(C_2064_ p_152152_, C_4687_ p_152153_, C_2064_ p_152154_, C_1598_ p_152155_, C_4675_ p_152156_, C_4675_ arg5)
public FluidState
c_(coc arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
m_5888_(C_2064_ arg0)