Class Pixel

java.lang.Object
org.bukkit.util.Vector
com.github.darksoulq.abyssallib.world.particle.style.Pixel
All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable
Direct Known Subclasses:
MotionVector

public class Pixel extends org.bukkit.util.Vector
A specialized Vector that carries color information.

This class is used by the particle system to represent a single point in space that has a specific tint. It allows Generators to pass color data directly to ParticleRenderers.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Pixel(double x, double y, double z, org.bukkit.Color color)
    Constructs a new Pixel with the specified coordinates and color.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Pixel
    Creates a deep clone of this Pixel.
    org.bukkit.Color
    Retrieves the color associated with this vector.

    Methods inherited from class org.bukkit.util.Vector

    add, angle, checkFinite, copy, crossProduct, deserialize, distance, distanceSquared, divide, dot, equals, fromJOML, fromJOML, fromJOML, fromJOML, fromJOML, fromJOML, getBlockX, getBlockY, getBlockZ, getCrossProduct, getEpsilon, getMaximum, getMidpoint, getMinimum, getRandom, getX, getY, getZ, hashCode, isInAABB, isInSphere, isNormalized, isZero, length, lengthSquared, midpoint, multiply, multiply, multiply, multiply, normalize, rotateAroundAxis, rotateAroundNonUnitAxis, rotateAroundX, rotateAroundY, rotateAroundZ, serialize, setX, setX, setX, setY, setY, setY, setZ, setZ, setZ, subtract, toBlockVector, toLocation, toLocation, toString, toVector3d, toVector3f, toVector3i, toVector3i, zero

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Pixel

      public Pixel(double x, double y, double z, org.bukkit.Color color)
      Constructs a new Pixel with the specified coordinates and color.
      Parameters:
      x - The X coordinate.
      y - The Y coordinate.
      z - The Z coordinate.
      color - The Color to associate with this point.
  • Method Details

    • getColor

      public org.bukkit.Color getColor()
      Retrieves the color associated with this vector.
      Returns:
      The Color instance.
    • clone

      @NotNull public @NotNull Pixel clone()
      Creates a deep clone of this Pixel.
      Overrides:
      clone in class org.bukkit.util.Vector
      Returns:
      A new Pixel instance with identical coordinates and color.