Class TravellingPoint
java.lang.Object
com.simibubi.create.content.trains.entity.TravellingPoint
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTravellingPoint(TrackNode node1, TrackNode node2, TrackEdge edge, double position, boolean upsideDown) -
Method Summary
Modifier and TypeMethodDescriptionprotected DoubleedgeTraversedFrom(TrackGraph graph, boolean forward, TravellingPoint.IEdgePointListener edgePointListener, TravellingPoint.ITurnListener turnListener, double prevPos, double totalDistance) follow(TravellingPoint other) follow(TravellingPoint other, Consumer<Boolean> success) net.minecraft.world.phys.Vec3getPosition(TrackGraph trackGraph) net.minecraft.world.phys.Vec3getPosition(TrackGraph trackGraph, boolean flipUpsideDown) net.minecraft.world.phys.Vec3getPositionWithOffset(TrackGraph trackGraph, double offset, boolean flipUpsideDown) voidmigrateTo(List<TrackGraphLocation> locations) random()static TravellingPointread(net.minecraft.nbt.CompoundTag tag, TrackGraph graph, DimensionPalette dimensions) voidreverse(TrackGraph graph) steer(TravellingPoint.SteerDirection direction, net.minecraft.world.phys.Vec3 upNormal) doubletravel(TrackGraph graph, double distance, TravellingPoint.ITrackSelector trackSelector) doubletravel(TrackGraph graph, double distance, TravellingPoint.ITrackSelector trackSelector, TravellingPoint.IEdgePointListener signalListener) doubletravel(TrackGraph graph, double distance, TravellingPoint.ITrackSelector trackSelector, TravellingPoint.IEdgePointListener signalListener, TravellingPoint.ITurnListener turnListener) doubletravel(TrackGraph graph, double distance, TravellingPoint.ITrackSelector trackSelector, TravellingPoint.IEdgePointListener signalListener, TravellingPoint.ITurnListener turnListener, TravellingPoint.IPortalListener portalListener) net.minecraft.nbt.CompoundTagwrite(DimensionPalette dimensions)
-
Field Details
-
node1
-
node2
-
edge
-
position
public double position -
blocked
public boolean blocked -
upsideDown
public boolean upsideDown
-
-
Constructor Details
-
TravellingPoint
public TravellingPoint() -
TravellingPoint
-
-
Method Details
-
ignoreEdgePoints
-
ignoreTurns
-
ignorePortals
-
random
-
follow
-
follow
public TravellingPoint.ITrackSelector follow(TravellingPoint other, @Nullable Consumer<Boolean> success) -
steer
public TravellingPoint.ITrackSelector steer(TravellingPoint.SteerDirection direction, net.minecraft.world.phys.Vec3 upNormal) -
travel
public double travel(TrackGraph graph, double distance, TravellingPoint.ITrackSelector trackSelector) -
travel
public double travel(TrackGraph graph, double distance, TravellingPoint.ITrackSelector trackSelector, TravellingPoint.IEdgePointListener signalListener) -
travel
public double travel(TrackGraph graph, double distance, TravellingPoint.ITrackSelector trackSelector, TravellingPoint.IEdgePointListener signalListener, TravellingPoint.ITurnListener turnListener) -
travel
public double travel(TrackGraph graph, double distance, TravellingPoint.ITrackSelector trackSelector, TravellingPoint.IEdgePointListener signalListener, TravellingPoint.ITurnListener turnListener, TravellingPoint.IPortalListener portalListener) -
edgeTraversedFrom
protected Double edgeTraversedFrom(TrackGraph graph, boolean forward, TravellingPoint.IEdgePointListener edgePointListener, TravellingPoint.ITurnListener turnListener, double prevPos, double totalDistance) -
reverse
-
getPosition
-
getPosition
public net.minecraft.world.phys.Vec3 getPosition(@Nullable TrackGraph trackGraph, boolean flipUpsideDown) -
getPositionWithOffset
public net.minecraft.world.phys.Vec3 getPositionWithOffset(@Nullable TrackGraph trackGraph, double offset, boolean flipUpsideDown) -
migrateTo
-
write
-
read
public static TravellingPoint read(net.minecraft.nbt.CompoundTag tag, TrackGraph graph, DimensionPalette dimensions)
-