Class SharpLine
java.lang.Object
net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
net.buildtheearth.terraminusminus.dataset.vector.geometry.line.AbstractLine
net.buildtheearth.terraminusminus.dataset.vector.geometry.line.SharpLine
- All Implemented Interfaces:
Comparable<VectorGeometry>,VectorGeometry,Bounds2d
A line style that resembles WorldEdit //line tool, that BTE Builders seem to prefer a lot.
-
Field Summary
Fields inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.line.AbstractLine
segmentsFields inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
draw, id, layer -
Constructor Summary
ConstructorsConstructorDescriptionSharpLine(@NonNull String id, double layer, @NonNull DrawFunction draw, @NonNull MultiLineString lines) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull Bounds2d bounds) Modifies the givenCachedChunkData.Builderfor the given chunkdoublemaxX()doublemaxZ()doubleminX()doubleminZ()Methods inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.line.AbstractLine
segmentsMethods inherited from class net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
canEqual, convertToSegments, draw, equals, hashCode, id, layerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.buildtheearth.terraminusminus.util.bvh.Bounds2d
contains, expand, intersects, toCornerBB, toTiles, union, validateMethods inherited from interface net.buildtheearth.terraminusminus.dataset.vector.geometry.VectorGeometry
compareTo
-
Constructor Details
-
SharpLine
public SharpLine(@NonNull @NonNull String id, double layer, @NonNull @NonNull DrawFunction draw, @NonNull @NonNull MultiLineString lines)
-
-
Method Details
-
apply
public void apply(@NonNull CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull @NonNull Bounds2d bounds) Description copied from interface:VectorGeometryModifies the givenCachedChunkData.Builderfor the given chunk- Parameters:
builder- theCachedChunkData.BuilderchunkX- the chunk's X coordinatechunkZ- the chunk's Z coordinatebounds- the chunk's bounding box
-
minX
public double minX()- Specified by:
minXin interfaceBounds2d- Overrides:
minXin classAbstractLine- Returns:
- the minimum X coordinate
-
maxX
public double maxX()- Specified by:
maxXin interfaceBounds2d- Overrides:
maxXin classAbstractLine- Returns:
- the maximum X coordinate
-
minZ
public double minZ()- Specified by:
minZin interfaceBounds2d- Overrides:
minZin classAbstractLine- Returns:
- the minimum Z coordinate
-
maxZ
public double maxZ()- Specified by:
maxZin interfaceBounds2d- Overrides:
maxZin classAbstractLine- Returns:
- the maximum Z coordinate
-