Class RailState

java.lang.Object
net.minecraft.world.level.block.RailState

public class RailState extends Object
  • Field Details

    • level

      private final Level level
    • pos

      private final BlockPos pos
    • block

      private final BaseRailBlock block
    • state

      private BlockState state
    • isStraight

      private final boolean isStraight
    • connections

      private final List<BlockPos> connections
    • canMakeSlopes

      private final boolean canMakeSlopes
  • Constructor Details

  • Method Details

    • getConnections

      public List<BlockPos> getConnections()
    • updateConnections

      private void updateConnections(RailShape p_55428_)
    • removeSoftConnections

      private void removeSoftConnections()
    • hasRail

      private boolean hasRail(BlockPos p_55430_)
    • getRail

      @Nullable private RailState getRail(BlockPos p_55439_)
    • connectsTo

      private boolean connectsTo(RailState p_55426_)
    • hasConnection

      private boolean hasConnection(BlockPos p_55444_)
    • countPotentialConnections

      protected int countPotentialConnections()
    • canConnectTo

      private boolean canConnectTo(RailState p_55437_)
    • connectTo

      private void connectTo(RailState p_55442_)
    • hasNeighborRail

      private boolean hasNeighborRail(BlockPos p_55447_)
    • place

      public RailState place(boolean p_55432_, boolean p_55433_, RailShape p_55434_)
    • getState

      public BlockState getState()