java.lang.Object
com.simibubi.create.content.logistics.trains.TrackEdge

public class TrackEdge extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • isTurn

      public boolean isTurn()
    • isInterDimensional

      public boolean isInterDimensional()
    • getEdgeData

      public EdgeData getEdgeData()
    • getTurn

      public BezierConnection getTurn()
    • getDirection

      public net.minecraft.world.phys.Vec3 getDirection(boolean fromFirst)
    • getDirectionAt

      public net.minecraft.world.phys.Vec3 getDirectionAt(double t)
    • canTravelTo

      public boolean canTravelTo(TrackEdge other)
    • getLength

      public double getLength()
    • incrementT

      public double incrementT(double currentT, double distance)
    • getPosition

      public net.minecraft.world.phys.Vec3 getPosition(double t)
    • getIntersection

      public Collection<double[]> getIntersection(TrackNode node1, TrackNode node2, TrackEdge other, TrackNode other1, TrackNode other2)
    • getNormal

      public net.minecraft.world.phys.Vec3 getNormal(TrackNode node1, TrackNode node2, double t)
    • write

      public net.minecraft.nbt.CompoundTag write(DimensionPalette dimensions)
    • read

      public static TrackEdge read(TrackNode node1, TrackNode node2, net.minecraft.nbt.CompoundTag tag, TrackGraph graph, DimensionPalette dimensions)