Class TrackEdge
java.lang.Object
com.simibubi.create.content.logistics.trains.TrackEdge
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTravelTo(TrackEdge other) net.minecraft.world.phys.Vec3getDirection(boolean fromFirst) net.minecraft.world.phys.Vec3getDirectionAt(double t) Collection<double[]>getIntersection(TrackNode node1, TrackNode node2, TrackEdge other, TrackNode other1, TrackNode other2) doublenet.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3getPosition(double t) getTurn()doubleincrementT(double currentT, double distance) booleanbooleanisTurn()static TrackEdgeread(TrackNode node1, TrackNode node2, net.minecraft.nbt.CompoundTag tag, TrackGraph graph, DimensionPalette dimensions) net.minecraft.nbt.CompoundTagwrite(DimensionPalette dimensions)
-
Field Details
-
node1
-
node2
-
-
Constructor Details
-
TrackEdge
-
-
Method Details
-
isTurn
public boolean isTurn() -
isInterDimensional
public boolean isInterDimensional() -
getEdgeData
-
getTurn
-
getDirection
public net.minecraft.world.phys.Vec3 getDirection(boolean fromFirst) -
getDirectionAt
public net.minecraft.world.phys.Vec3 getDirectionAt(double t) -
canTravelTo
-
getLength
public double getLength() -
incrementT
public double incrementT(double currentT, double distance) -
getPosition
public net.minecraft.world.phys.Vec3 getPosition(double t) -
getIntersection
-
getNormal
-
write
-
read
public static TrackEdge read(TrackNode node1, TrackNode node2, net.minecraft.nbt.CompoundTag tag, TrackGraph graph, DimensionPalette dimensions)
-