Class Location2D

java.lang.Object
org.bukkit.Location
org.incendo.cloud.bukkit.parser.location.Location2D
All Implemented Interfaces:
Cloneable, ConfigurationSerializable

public class Location2D extends Location
Location projected onto the XZ-plane
Since:
1.4.0
  • Constructor Details

    • Location2D

      protected Location2D(@Nullable World world, double x, double z)
  • Method Details

    • from

      public static @NonNull Location2D from(@Nullable World world, double x, double z)
      Get a new Location2D
      Parameters:
      world - World this location is in
      x - X position for this location
      z - Z position for this location
      Returns:
      Location2D