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 classBlockLocation.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 IntegergetX()final UnitsetX(Integer x)final IntegergetY()final UnitsetY(Integer y)final IntegergetZ()final UnitsetZ(Integer z)StringtoString()final Vector3ftoVector3f()final VectortoVector()final DoubledistanceTo(BlockLocation other)final BlockLocationadd(BlockLocation blockLocation)final BlockLocationadd(Integer x, Integer y, Integer z)final Locationadd(Location location)final BlockLocationsubtract(BlockLocation blockLocation)final BlockLocationsubtract(Integer x, Integer y, Integer z)final Locationsubtract(Location location)final LocationtoLocation(World world)final BlockLocationgroundRotate(Float angle)Booleanequals(Object obj)Map<String, Integer>serialize()IntegerhashCode()-
-
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)
-
-
-
-