Class BlockLocation
-
- All Implemented Interfaces:
-
org.bukkit.configuration.serialization.ConfigurationSerializable
public class BlockLocation implements ConfigurationSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
BlockLocation.Companion
-
Constructor Summary
Constructors Constructor Description BlockLocation(Location location)
BlockLocation(Block block)
BlockLocation(String location)
BlockLocation(Integer x, Integer y, Integer z)
-
Method Summary
Modifier and Type Method Description final Integer
getX()
final Unit
setX(Integer x)
final Integer
getY()
final Unit
setY(Integer y)
final Integer
getZ()
final Unit
setZ(Integer z)
String
toString()
final Vector3f
toVector3f()
final Vector
toVector()
final Double
distanceTo(BlockLocation other)
final BlockLocation
add(BlockLocation blockLocation)
final BlockLocation
add(Integer x, Integer y, Integer z)
final Location
add(Location location)
final BlockLocation
subtract(BlockLocation blockLocation)
final BlockLocation
subtract(Integer x, Integer y, Integer z)
final Location
subtract(Location location)
final Location
toLocation(World world)
final BlockLocation
groundRotate(Float angle)
Boolean
equals(Object obj)
Map<String, Integer>
serialize()
Integer
hashCode()
-
-
Method Detail
-
toVector3f
final Vector3f toVector3f()
-
toVector
final Vector toVector()
-
distanceTo
final Double distanceTo(BlockLocation other)
-
add
final BlockLocation add(BlockLocation blockLocation)
-
add
final BlockLocation add(Integer x, Integer y, Integer z)
-
add
final Location add(Location location)
-
subtract
final BlockLocation subtract(BlockLocation blockLocation)
-
subtract
final BlockLocation subtract(Integer x, Integer y, Integer z)
-
subtract
final Location subtract(Location location)
-
toLocation
final Location toLocation(World world)
-
groundRotate
final BlockLocation groundRotate(Float angle)
-
-
-
-