public class PathConnection extends MarkerConnection<PathConnection>
subCache
Constructor and Description |
---|
PathConnection(MarkerSubCache<PathConnection> subCache) |
PathConnection(PathSubCache subCache,
java.util.List<net.minecraft.util.math.BlockPos> positions) |
Modifier and Type | Method and Description |
---|---|
boolean |
addMarker(net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos toAdd) |
boolean |
canAddMarker(net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos toAdd) |
boolean |
canMergeWith(PathConnection conTo,
net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to) |
com.google.common.collect.ImmutableList<net.minecraft.util.math.BlockPos> |
getMarkerPositions() |
boolean |
mergeWith(PathConnection conTo,
net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to) |
void |
removeMarker(net.minecraft.util.math.BlockPos pos)
Removes the specified marker from this connection.
|
void |
renderInWorld() |
void |
reverseDirection() |
static boolean |
tryCreateConnection(PathSubCache subCache,
net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to) |
getDebugInfo, getTypeInfo
public PathConnection(MarkerSubCache<PathConnection> subCache)
public PathConnection(PathSubCache subCache, java.util.List<net.minecraft.util.math.BlockPos> positions)
public static boolean tryCreateConnection(PathSubCache subCache, net.minecraft.util.math.BlockPos from, net.minecraft.util.math.BlockPos to)
public void removeMarker(net.minecraft.util.math.BlockPos pos)
MarkerConnection
MarkerSubCache.removeMarker(BlockPos)
. This may need to remove itself and split itself up (if the resulting
connection is invalid).removeMarker
in class MarkerConnection<PathConnection>
public boolean addMarker(net.minecraft.util.math.BlockPos from, net.minecraft.util.math.BlockPos toAdd)
public boolean canAddMarker(net.minecraft.util.math.BlockPos from, net.minecraft.util.math.BlockPos toAdd)
public boolean mergeWith(PathConnection conTo, net.minecraft.util.math.BlockPos from, net.minecraft.util.math.BlockPos to)
public boolean canMergeWith(PathConnection conTo, net.minecraft.util.math.BlockPos from, net.minecraft.util.math.BlockPos to)
public com.google.common.collect.ImmutableList<net.minecraft.util.math.BlockPos> getMarkerPositions()
getMarkerPositions
in class MarkerConnection<PathConnection>
public void reverseDirection()
public void renderInWorld()
renderInWorld
in class MarkerConnection<PathConnection>