net.minecraft.world.level.block

public abstract class BaseRailBlock

extends Block implements SimpleWaterloggedBlock

All mapped superinterfaces:

ItemLike, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

cdg
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
forbidCurves
f_49357_

Constructor summary

ModifierConstructor
protected (boolean forbidCurves, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public static boolean
a(cav arg0, gj 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(cov arg0)
isRail(BlockState arg0)
method_9476(class_2680 arg0)
isRail(BlockState state)
m_49416_(C_2064_ p_49417_)
public boolean
c()
isStraight()
method_9478()
cannotMakeCurves()
m_49413_()
public VoxelShape
a(cov arg0, cab arg1, gj arg2, dpt 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(cov arg0, cay arg1, gj 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(cov arg0, cav arg1, gj arg2, cov 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(cov arg0, cav arg1, gj 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(cov arg0, cav arg1, gj arg2, cdq arg3, gj 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(gj arg0, cav arg1, cpz 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(cov arg0, cav arg1, gj arg2, cdq 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(cav arg0, gj arg1, cov 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(cov arg0)
getPistonPushReaction(BlockState arg0)
method_9527(class_2680 arg0)
getPistonBehavior(BlockState arg0)
m_5537_(C_2064_ arg0)
public void
a(cov arg0, cav arg1, gj arg2, cov 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(bww 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(cov arg0, go arg1, cov arg2, caw arg3, gj arg4, gj 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_(cov arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
m_5888_(C_2064_ arg0)