Class RailState

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

public class RailState extends Object
  • Field Details

    • level

      private final World level
    • pos

      private final BlockPos pos
    • block

      private final AbstractRailBlock 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_208509_1_)
    • removeSoftConnections

      private void removeSoftConnections()
    • hasRail

      private boolean hasRail(BlockPos p_196902_1_)
    • getRail

      @Nullable private RailState getRail(BlockPos p_196908_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_)
    • getState

      public BlockState getState()