Class RailState


  • public class RailState
    extends java.lang.Object
    • Field Detail

      • level

        private final World level
      • isStraight

        private final boolean isStraight
      • connections

        private final java.util.List<BlockPos> connections
      • canMakeSlopes

        private final boolean canMakeSlopes
    • Method Detail

      • getConnections

        public java.util.List<BlockPos> getConnections()
      • updateConnections

        private void updateConnections​(RailShape p_208509_1_)
      • removeSoftConnections

        private void removeSoftConnections()
      • hasRail

        private boolean hasRail​(BlockPos p_196902_1_)
      • connectsTo

        private boolean connectsTo​(RailState p_196919_1_)
      • hasConnection

        private boolean hasConnection​(BlockPos p_196904_1_)
      • countPotentialConnections

        protected int countPotentialConnections()
      • canConnectTo

        private boolean canConnectTo​(RailState p_196905_1_)
      • connectTo

        private void connectTo​(RailState p_208510_1_)
      • hasNeighborRail

        private boolean hasNeighborRail​(BlockPos p_208512_1_)
      • place

        public RailState place​(boolean p_226941_1_,
                               boolean p_226941_2_,
                               RailShape p_226941_3_)