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
ConstructorsConstructorDescriptionPixel(double x, double y, double z, org.bukkit.Color color) Constructs a new Pixel with the specified coordinates and color. -
Method Summary
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
-
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- TheColorto associate with this point.
-
-
Method Details
-
getColor
public org.bukkit.Color getColor()Retrieves the color associated with this vector.- Returns:
- The
Colorinstance.
-
clone
-