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) Deprecated.static Location
toLocation
(Extent extent, org.enginehub.linbus.tree.LinListTag<org.enginehub.linbus.tree.LinDoubleTag> positionTag, org.enginehub.linbus.tree.LinListTag<org.enginehub.linbus.tree.LinFloatTag> rotationTag) 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
@Deprecated public static Location toLocation(Extent extent, ListTag positionTag, ListTag directionTag) Deprecated.UsetoLocation(Extent, LinListTag, LinListTag)
instead.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
-
toLocation
public static Location toLocation(Extent extent, org.enginehub.linbus.tree.LinListTag<org.enginehub.linbus.tree.LinDoubleTag> positionTag, org.enginehub.linbus.tree.LinListTag<org.enginehub.linbus.tree.LinFloatTag> rotationTag) 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 tagrotationTag
- the rotation tag- Returns:
- a location
-
toLocation(Extent, LinListTag, LinListTag)
instead.