public final class NBTConversions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Location |
toLocation(Extent extent,
ListTag positionTag,
ListTag directionTag)
Read a
Location from two list tags, the first of which contains
three numbers for the X, Y, and Z components, and the second of
which contains two numbers, the yaw and pitch in degrees. |
public static Location toLocation(Extent extent, ListTag positionTag, ListTag directionTag)
Location
from two list tags, the first of which contains
three numbers for the X, Y, and Z components, and the second of
which contains two numbers, the yaw and pitch in degrees.
For values that are unavailable, their values will be 0.
extent
- the extentpositionTag
- the position tagdirectionTag
- the direction tag