Class TrackNodeLocation.DiscoveredLocation
java.lang.Object
net.minecraft.core.Vec3i
com.simibubi.create.content.logistics.trains.TrackNodeLocation
com.simibubi.create.content.logistics.trains.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.logistics.trains.TrackNodeLocation
TrackNodeLocation.DiscoveredLocation -
Field Summary
Fields inherited from class com.simibubi.create.content.logistics.trains.TrackNodeLocation
dimensionFields 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 p_121865_, double p_121866_, double p_121867_) DiscoveredLocation(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 vec) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetTurn()booleannotInLineWith(net.minecraft.world.phys.Vec3 direction) booleanviaTurn(BezierConnection turn) withDirection(net.minecraft.world.phys.Vec3 direction) withNormal(net.minecraft.world.phys.Vec3 normal) Methods inherited from class com.simibubi.create.content.logistics.trains.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, 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 p_121865_, double p_121866_, double p_121867_) -
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
-
viaTurn
-
forceNode
-
withNormal
-
withDirection
-
connectedViaTurn
public boolean connectedViaTurn() -
getTurn
-
shouldForceNode
public boolean shouldForceNode() -
notInLineWith
public boolean notInLineWith(net.minecraft.world.phys.Vec3 direction)
-