Class LocationSafe

java.lang.Object
org.bukkit.Location
hm.zelha.particlesfx.util.LocationSafe
All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable

public class LocationSafe extends org.bukkit.Location
This class is meant to allow me to keep locations mutable without shapes going completely bonkers if they're modified

This class also extends Location so you can use it in the same way as that class
  • Constructor Details

    • LocationSafe

      public LocationSafe(org.bukkit.World world, double x, double y, double z)
      See Also:
    • LocationSafe

      public LocationSafe(org.bukkit.Location location)
      See Also:
  • Method Details

    • setUnsafely

      public void setUnsafely(double x, double y, double z, boolean causedByCompound)
      only meant to be used in LVMath, use at own risk
      Parameters:
      x - x coordinate
      y - y coordinate
      z - z coordinate
      causedByCompound - whether this was caused by a ParticleShapeCompound
    • addRecalcMechanic

      public void addRecalcMechanic(ParticleShapeCompound owner, Consumer<org.bukkit.Location> mechanic)
      only meant to be used in ParticleShapeCompound
      Parameters:
      owner - the owner of the shape that owns this location
      mechanic - mechanic to be ran when this location is modified
    • removeRecalcMechanic

      public void removeRecalcMechanic(ParticleShapeCompound owner)
      only meant to be used in ParticleShapeCompound
      Parameters:
      owner - the owner of the shape that owns this location
    • clone

      public LocationSafe clone()
      Overrides:
      clone in class org.bukkit.Location
    • setX

      public void setX(double x)
      Overrides:
      setX in class org.bukkit.Location
    • setY

      public void setY(double y)
      Overrides:
      setY in class org.bukkit.Location
    • setZ

      public void setZ(double z)
      Overrides:
      setZ in class org.bukkit.Location
    • add

      public LocationSafe add(org.bukkit.util.Vector vec)
      Overrides:
      add in class org.bukkit.Location
    • add

      public LocationSafe add(org.bukkit.Location vec)
      Overrides:
      add in class org.bukkit.Location
    • add

      public LocationSafe add(double x, double y, double z)
      Overrides:
      add in class org.bukkit.Location
    • subtract

      public LocationSafe subtract(org.bukkit.util.Vector vec)
      Overrides:
      subtract in class org.bukkit.Location
    • subtract

      public LocationSafe subtract(org.bukkit.Location vec)
      Overrides:
      subtract in class org.bukkit.Location
    • subtract

      public LocationSafe subtract(double x, double y, double z)
      Overrides:
      subtract in class org.bukkit.Location
    • multiply

      public LocationSafe multiply(double m)
      Overrides:
      multiply in class org.bukkit.Location
    • zero

      public LocationSafe zero()
      Overrides:
      zero in class org.bukkit.Location
    • setChanged

      public void setChanged(boolean changed)
    • isChanged

      public boolean isChanged()