Class SimpleLocation
-
- All Implemented Interfaces:
-
com.github.spigotbasics.core.messages.tags.MessageTagProvider
public final class SimpleLocation implements MessageTagProvider
Represents a Location that references a org.bukkit.World by name.
-
-
Method Summary
Modifier and Type Method Description final String
getWorld()
The name of the world. final Double
getX()
The x coordinate. final Double
getY()
The y coordinate. final Double
getZ()
The z coordinate. final Float
getYaw()
The yaw. final Float
getPitch()
The pitch. final Location
toLocation()
Turns a SimpleLocation into a Location. final Location
toLocation(World world)
Turns a SimpleLocation into a Location for the given world. final XYZCoords
toXYZCoords()
List<CustomTag>
getMessageTags()
final List<CustomTag>
getMessageTags(Integer decimalPlaces)
-
-
Method Detail
-
toLocation
final Location toLocation()
Turns a SimpleLocation into a Location.
- Returns:
The Location representation of the SimpleLocation.
-
toLocation
final Location toLocation(World world)
Turns a SimpleLocation into a Location for the given world.
- Parameters:
world
- The world to use.- Returns:
The Location representation of the SimpleLocation.
-
toXYZCoords
final XYZCoords toXYZCoords()
-
getMessageTags
List<CustomTag> getMessageTags()
-
getMessageTags
final List<CustomTag> getMessageTags(Integer decimalPlaces)
-
-
-
-