Class ImmutableXYZYP

All Implemented Interfaces:
Cloneable, ConfigurationSerializable

public class ImmutableXYZYP extends XYZYP
Extends XYZYP and forbids any modifications done to it
  • Constructor Details

    • ImmutableXYZYP

      public ImmutableXYZYP(Location loc)
    • ImmutableXYZYP

      public ImmutableXYZYP(Vector vec)
    • ImmutableXYZYP

      public ImmutableXYZYP(XYZ xyz)
    • ImmutableXYZYP

      public ImmutableXYZYP(XYZYP xyz)
    • ImmutableXYZYP

      public ImmutableXYZYP()
    • ImmutableXYZYP

      public ImmutableXYZYP(double x, double y, double z)
    • ImmutableXYZYP

      public ImmutableXYZYP(double x, double y, double z, float yaw, float pitch)
  • Method Details

    • setX

      public XYZYP setX(double x)
      Description copied from class: XYZ
      Sets the x-coordinate
      Overrides:
      setX in class XYZYP
      Parameters:
      x - The new x-coordinate
      Returns:
      This XYZ instance
    • setY

      public XYZYP setY(double y)
      Description copied from class: XYZ
      Sets the y-coordinate
      Overrides:
      setY in class XYZYP
      Parameters:
      y - The new y-coordinate
      Returns:
      This XYZ instance
    • setZ

      public XYZYP setZ(double z)
      Description copied from class: XYZ
      Sets the z-coordinate
      Overrides:
      setZ in class XYZYP
      Parameters:
      z - The new z-coordinate
      Returns:
      This XYZ instance
    • set

      public XYZYP set(double x, double y, double z)
      Description copied from class: XYZ
      Sets the new coordinates
      Overrides:
      set in class XYZYP
      Parameters:
      x - The new x-coordinate
      y - The new y-coordinate
      z - The new z-coordinate
      Returns:
      This XYZ instance
    • set

      public XYZYP set(XYZ xyz)
      Description copied from class: XYZ
      Copies and sets the xyz coordinates from the given object
      Overrides:
      set in class XYZYP
      Parameters:
      xyz - The object from which it shall be taken from
      Returns:
      This XYZ instance
    • set

      public XYZYP set(Location loc)
      Description copied from class: XYZ
      Copies and sets the xyz coordinates from the given object
      Overrides:
      set in class XYZYP
      Parameters:
      loc - The object from which it shall be taken from
      Returns:
      This XYZ instance
    • add

      public XYZYP add(double x, double y, double z)
      Description copied from class: XYZ
      Adds the x-coordinates
      Overrides:
      add in class XYZYP
      Parameters:
      x - The new x-coordinate
      y - The new y-coordinate
      z - The new z-coordinate
      Returns:
      This XYZ instance
    • add

      public XYZYP add(XYZ xyz)
      Overrides:
      add in class XYZYP
    • add

      public XYZYP add(Location loc)
      Overrides:
      add in class XYZYP
    • add

      public XYZYP add(Vector vec)
      Overrides:
      add in class XYZYP
    • subtract

      public XYZYP subtract(double x, double y, double z)
      Overrides:
      subtract in class XYZYP
    • subtract

      public XYZYP subtract(XYZ xyz)
      Overrides:
      subtract in class XYZYP
    • subtract

      public XYZYP subtract(Location loc)
      Overrides:
      subtract in class XYZYP
    • subtract

      public XYZYP subtract(Vector vec)
      Overrides:
      subtract in class XYZYP
    • multiply

      public XYZYP multiply(double amount)
      Overrides:
      multiply in class XYZYP
    • multiply

      public XYZYP multiply(double x, double y, double z)
      Overrides:
      multiply in class XYZYP
    • zero

      public XYZYP zero()
      Description copied from class: XYZ
      Sets all coordinates to 0
      Overrides:
      zero in class XYZYP
      Returns:
      This XYZ instance
    • setYaw

      public XYZYP setYaw(float yaw)
      Overrides:
      setYaw in class XYZYP
    • setPitch

      public XYZYP setPitch(float pitch)
      Overrides:
      setPitch in class XYZYP