Package net.minecraft.world.level.block
Class RailState
java.lang.Object
net.minecraft.world.level.block.RailState
-
Field Summary
Modifier and TypeFieldDescriptionprivate BaseRailBlock
private boolean
private boolean
private Level
private BlockPos
private BlockState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canConnectTo(RailState p_55437_)
private boolean
connectsTo(RailState p_55426_)
private void
protected int
private RailState
getState()
private boolean
hasConnection(BlockPos p_55444_)
private boolean
hasNeighborRail(BlockPos p_55447_)
private boolean
private void
private void
updateConnections(RailShape p_55428_)
-
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
-