Package net.minecraft.block
Class RailState
java.lang.Object
net.minecraft.block.RailState
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AbstractRailBlock
private final boolean
private final boolean
private final World
private final BlockPos
private BlockState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canConnectTo
(RailState p_196905_1_) private boolean
connectsTo
(RailState p_196919_1_) private void
protected int
private RailState
getState()
private boolean
hasConnection
(BlockPos p_196904_1_) private boolean
hasNeighborRail
(BlockPos p_208512_1_) private boolean
private void
private void
updateConnections
(RailShape p_208509_1_)
-
Field Details
-
level
-
pos
-
block
-
state
-
isStraight
private final boolean isStraight -
connections
-
canMakeSlopes
private final boolean canMakeSlopes
-
-
Constructor Details
-
RailState
-
-
Method Details
-
getConnections
-
updateConnections
-
removeSoftConnections
private void removeSoftConnections() -
hasRail
-
getRail
-
connectsTo
-
hasConnection
-
countPotentialConnections
protected int countPotentialConnections() -
canConnectTo
-
connectTo
-
hasNeighborRail
-
place
-
getState
-