Class TrackNodeLocation.DiscoveredLocation
java.lang.Object
net.minecraft.core.Vec3i
com.simibubi.create.content.trains.graph.TrackNodeLocation
com.simibubi.create.content.trains.graph.TrackNodeLocation.DiscoveredLocation
- All Implemented Interfaces:
Comparable<net.minecraft.core.Vec3i>
- Enclosing class:
TrackNodeLocation
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.content.trains.graph.TrackNodeLocation
TrackNodeLocation.DiscoveredLocation -
Field Summary
Fields inherited from class com.simibubi.create.content.trains.graph.TrackNodeLocation
dimension, yOffsetPixelsFields inherited from class net.minecraft.core.Vec3i
CODEC, ZERO -
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredLocation(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, net.minecraft.world.phys.Vec3 vec) DiscoveredLocation(net.minecraft.world.level.Level level, double x, double y, double z) DiscoveredLocation(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 vec) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleannet.minecraft.world.phys.Vec3getTurn()materialA(TrackMaterial material) materialB(TrackMaterial material) materials(TrackMaterial materialA, TrackMaterial materialB) booleannotInLineWith(net.minecraft.world.phys.Vec3 direction) booleanviaTurn(BezierConnection turn) withDirection(net.minecraft.world.phys.Vec3 direction) withNormal(net.minecraft.world.phys.Vec3 normal) withYOffset(int yOffsetPixels) Methods inherited from class com.simibubi.create.content.trains.graph.TrackNodeLocation
allAdjacent, equals, equalsIgnoreDim, getDimension, getLocation, hashCode, in, in, read, receive, send, writeMethods inherited from class net.minecraft.core.Vec3i
above, above, below, below, closerThan, closerToCenterThan, compareTo, cross, distManhattan, distSqr, distToCenterSqr, distToCenterSqr, distToLowCornerSqr, east, east, get, getX, getY, getZ, multiply, north, north, offset, offset, offsetCodec, relative, relative, relative, setX, setY, setZ, south, south, subtract, toShortString, toString, west, west
-
Constructor Details
-
DiscoveredLocation
public DiscoveredLocation(net.minecraft.world.level.Level level, double x, double y, double z) -
DiscoveredLocation
public DiscoveredLocation(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, net.minecraft.world.phys.Vec3 vec) -
DiscoveredLocation
public DiscoveredLocation(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 vec)
-
-
Method Details
-
materialA
-
materialB
-
materials
public TrackNodeLocation.DiscoveredLocation materials(TrackMaterial materialA, TrackMaterial materialB) -
viaTurn
-
forceNode
-
withNormal
-
withYOffset
-
withDirection
-
connectedViaTurn
public boolean connectedViaTurn() -
getTurn
-
shouldForceNode
public boolean shouldForceNode() -
differentMaterials
public boolean differentMaterials() -
notInLineWith
public boolean notInLineWith(net.minecraft.world.phys.Vec3 direction) -
getDirection
public net.minecraft.world.phys.Vec3 getDirection()
-