Class NBTConversions
java.lang.Object
com.sk89q.worldedit.world.storage.NBTConversions
Utility methods for working with NBT data used in Minecraft.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Location
toLocation(Extent extent, ListTag positionTag, ListTag directionTag)
Read aLocation
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.
-
Method Details
-
toLocation
Read aLocation
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.
- Parameters:
extent
- the extentpositionTag
- the position tagdirectionTag
- the direction tag- Returns:
- a location
-