net.minecraft.world.level.block

public class RailState

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

Field summary

Modifier and TypeField
private final Level
a
level
field_11409
world
private final BlockPos
b
pos
field_11410
pos
private final BaseRailBlock
c
block
field_11411
block
private BlockState
d
state
field_11406
state
private final boolean
e
isStraight
field_11408
forbidCurves
private final List<BlockPos>
f
connections
field_11407
neighbors

Constructor summary

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

Method summary

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