net.minecraft.world.level.block

public abstract class BaseRailBlock

extends Block implements SimpleWaterloggedBlock

All mapped superinterfaces:

FeatureElement, ItemLike, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

dkb
net.minecraft.world.level.block.BaseRailBlock
net.minecraft.class_2241
net.minecraft.block.AbstractRailBlock
net.minecraft.world.level.block.BlockMinecartTrackAbstract

Field summary

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

Constructor summary

ModifierConstructor
protected (boolean forbidCurves, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public static boolean
a(dhi arg0, jh arg1)
isRail(Level arg0, BlockPos arg1)
method_9479(class_1937 arg0, class_2338 arg1)
isRail(World world, BlockPos pos)
public static boolean
h(dxv arg0)
isRail(BlockState arg0)
method_9476(class_2680 arg0)
isRail(BlockState state)
protected abstract com.mojang.serialization.MapCodec<? extends BaseRailBlock>
a()
codec()
method_53969()
getCodec()
public boolean
b()
isStraight()
method_9478()
cannotMakeCurves()
protected VoxelShape
a(dxv arg0, dgn arg1, jh arg2, fcd 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)
protected boolean
a(dxv arg0, dhl arg1, jh 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)
protected void
b(dxv arg0, dhi arg1, jh arg2, dxv 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)
protected BlockState
a(dxv arg0, dhi arg1, jh 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)
protected void
a(dxv arg0, dhi arg1, jh arg2, dkm arg3, evf arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, Orientation arg4, boolean arg5)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_9904 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, WireOrientation arg4, boolean arg5)
private static boolean
a(jh arg0, dhi arg1, dyy 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)
protected void
a(dxv arg0, dhi arg1, jh arg2, dkm 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)
protected BlockState
a(dhi arg0, jh arg1, dxv 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)
protected void
a(dxv arg0, dhi arg1, jh arg2, dxv 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)
public BlockState
a(dbg arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public abstract Property<RailShape>
c()
getShapeProperty()
method_9474()
getShapeProperty()
protected BlockState
a(dxv arg0, dhl arg1, dhx arg2, jh arg3, jm arg4, jh arg5, dxv arg6, bam arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected FluidState
b_(dxv arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)