worldpoint: add toWorldArea() function that returns a 1x1 WorldArea of the WorldPoint (#2870)
This commit is contained in:
@@ -244,6 +244,16 @@ public class WorldPoint
|
|||||||
return worldPoints;
|
return worldPoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts a WorldPoint to a 1x1 WorldArea.
|
||||||
|
*
|
||||||
|
* @return Returns a 1x1 WorldArea
|
||||||
|
*/
|
||||||
|
public WorldArea toWorldArea()
|
||||||
|
{
|
||||||
|
return new WorldArea(x, y, 1, 1, plane);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rotate the coordinates in the chunk according to chunk rotation
|
* Rotate the coordinates in the chunk according to chunk rotation
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user