net.minecraft.block

public class RailPlacementHelper

net.minecraft.world.level.block.RailState
net.minecraft.class_2452
net.minecraft.block.RailPlacementHelper

Field summary

Modifier and TypeField
private final World
level
field_11409
world
private final BlockPos
pos
field_11410
pos
private final AbstractRailBlock
block
field_11411
block
private BlockState
state
field_11406
state
private final boolean
isStraight
field_11408
forbidCurves
private final List<BlockPos>
connections
field_11407
neighbors

Constructor summary

ModifierConstructor
public (World world, BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public List<BlockPos>
getConnections()
method_10457()
getNeighbors()
private void
updateConnections(RailShape direction)
method_10466(class_2768 arg0)
computeNeighbors(RailShape shape)
private void
removeSoftConnections()
method_10467()
updateNeighborPositions()
private boolean
hasRail(BlockPos pos)
method_10456(class_2338 arg0)
isVerticallyNearRail(BlockPos pos)
private RailPlacementHelper
getRail(BlockPos pos)
method_10458(class_2338 arg0)
getNeighboringRail(BlockPos pos)
private boolean
connectsTo(RailState rail)
method_10464(class_2452 arg0)
isNeighbor(RailPlacementHelper other)
private boolean
hasConnection(BlockPos railPos)
method_10463(class_2338 arg0)
isNeighbor(BlockPos pos)
protected int
countPotentialConnections()
method_10460()
getNeighborCount()
private boolean
canConnectTo(RailState rail)
method_10455(class_2452 arg0)
canConnect(RailPlacementHelper placementHelper)
private void
connectTo(RailState rail)
method_10461(class_2452 arg0)
computeRailShape(RailPlacementHelper placementHelper)
private boolean
hasNeighborRail(BlockPos railPos)
method_10465(class_2338 arg0)
canConnect(BlockPos pos)
public RailPlacementHelper
place(boolean hasSignal, boolean first, RailShape defaultShape)
method_10459(boolean arg0, boolean arg1, class_2768 arg2)
updateBlockState(boolean powered, boolean forceUpdate, RailShape railShape)
public BlockState
getState()
method_10462()
getBlockState()