Class NBTConversions

java.lang.Object
com.sk89q.worldedit.world.storage.NBTConversions

public final class NBTConversions extends Object
Utility methods for working with NBT data used in Minecraft.
  • Method Details

    • toLocation

      @Deprecated public 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.

      For values that are unavailable, their values will be 0.

      Parameters:
      extent - the extent
      positionTag - the position tag
      directionTag - 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 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.

      For values that are unavailable, their values will be 0.

      Parameters:
      extent - the extent
      positionTag - the position tag
      rotationTag - the rotation tag
      Returns:
      a location