net.minecraft.world.level.block

public abstract class BaseRailBlock

extends Block implements SimpleWaterloggedBlock

All mapped superinterfaces:

FeatureElement, ItemLike, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

dlj
net.minecraft.world.level.block.BaseRailBlock
net.minecraft.class_2241
net.minecraft.block.AbstractRailBlock

Field summary

Modifier and TypeField
public static final BooleanProperty
a
WATERLOGGED
field_27096
WATERLOGGED
private static final VoxelShape
b
SHAPE_FLAT
field_9958
STRAIGHT_SHAPE
private static final VoxelShape
c
SHAPE_SLOPE
field_9960
ASCENDING_SHAPE
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(dip arg0, iu arg1)
isRail(Level arg0, BlockPos arg1)
method_9479(class_1937 arg0, class_2338 arg1)
isRail(World world, BlockPos pos)
public static boolean
h(dzo 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(dzo arg0, dhv arg1, iu arg2, feb 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(dzo arg0, dis arg1, iu 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
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)
protected BlockState
a(dzo arg0, dip arg1, iu 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(dzo arg0, dip arg1, iu arg2, dlu arg3, exd 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(iu arg0, dip arg1, eas 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(dzo arg0, dip arg1, iu arg2, dlu 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(dip arg0, iu arg1, dzo 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(dzo arg0, aro arg1, iu arg2, boolean arg3)
affectNeighborsAfterRemoval(BlockState arg0, ServerLevel arg1, BlockPos arg2, boolean arg3)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
public BlockState
a(dcl arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public abstract Property<RailShape>
c()
getShapeProperty()
method_9474()
getShapeProperty()
protected BlockState
a(dzo arg0, dis arg1, dje arg2, iu arg3, ja arg4, iu arg5, dzo arg6, azt 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_(dzo arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)