Package hm.zelha.particlesfx.shapers
Class ParticleText
java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
hm.zelha.particlesfx.shapers.parents.ParticleShaper
hm.zelha.particlesfx.shapers.ParticleText
- All Implemented Interfaces:
Shape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected booleanprotected Fontprotected intprotected BufferedImageprotected booleanprotected booleanprotected final ThreadLocalRandomprotected intprotected intprotected intprotected doubleprotected doubleFields inherited from class hm.zelha.particlesfx.shapers.parents.ParticleShaper
animator, async, currentCount, delay, locationHelper, mechanics, overallCount, particle, particleFrequency, particlesPerDisplay, players, secondaryParticles, vectorHelperFields inherited from class hm.zelha.particlesfx.shapers.parents.RotationHandler
centroid, compounds, lastRotatedAround, locations, originalCentroid, origins, rhLocationHelper, rhRotHelper, rhVectorHelper, rot, rot2, rotHelper -
Constructor Summary
ConstructorsConstructorDescriptionParticleText(Particle particle, LocationSafe center, double xRadius, double zRadius, int particleFrequency, String... text) ParticleText(Particle particle, LocationSafe center, double xRadius, double zRadius, String... text) ParticleText(Particle particle, LocationSafe center, double radius, int particleFrequency, String... text) ParticleText(Particle particle, LocationSafe center, double radius, String... text) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclone()protected ParticleShapervoiddisplay()intintorg.bukkit.LocationgetFont()getLine(int line) intString[]getText()doubledoublebooleanbooleanprotected voidvoidremoveLine(int line) voidscale(double x, double y, double z) Rescales this shape such that a shape with the xyz radiuses of 4, 3, 4, resized by 1.25, 1.25, 1.25, would have its radiuses become 5, 3.75, 5.setBorderX(int borderX) setBorderZ(int borderZ) voidsetCenter(LocationSafe center) setCentered(boolean centered) setInverted(boolean inverted) voidvoidsetXRadius(double xRadius) voidsetZRadius(double zRadius) Methods inherited from class hm.zelha.particlesfx.shapers.parents.ParticleShaper
addMechanic, addParticle, addPlayer, addPlayer, applyMechanics, getCurrentParticle, getDelay, getMechanicAmount, getParticle, getParticleFrequency, getParticlesPerDisplay, getPlayerAmount, getPlayers, getSecondaryParticle, getSecondaryParticleAmount, hasPlayer, isAsync, isRunning, removeMechanic, removeParticle, removePlayer, removePlayer, setAsync, setDelay, setDisplayPosition, setParticle, setParticleFrequency, setParticlesPerDisplay, setWorld, start, stopMethods inherited from class hm.zelha.particlesfx.shapers.parents.RotationHandler
addCompound, calculateCentroid, face, faceAroundLocation, getAroundAxisPitch, getAroundAxisRoll, getAroundAxisYaw, getAroundPitch, getAroundRoll, getAroundRotationOrder, getAroundYaw, getAxisPitch, getAxisRoll, getAxisYaw, getClonedCenter, getDirection, getLocationAmount, getLocations, getLocationsList, getPitch, getRoll, getRotationOrder, getTotalDistance, getWorld, getYaw, move, move, move, recalculateIfNeeded, removeCompound, rotate, rotateAroundLocation, scale, setAroundAxisPitch, setAroundAxisRoll, setAroundAxisRotation, setAroundAxisYaw, setAroundPitch, setAroundRoll, setAroundRotation, setAroundRotationOrder, setAroundYaw, setAxisPitch, setAxisRoll, setAxisRotation, setAxisYaw, setPitch, setRoll, setRotation, setRotationOrder, setYawMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hm.zelha.particlesfx.shapers.parents.Shape
face, faceAroundLocation, getAroundAxisPitch, getAroundAxisRoll, getAroundAxisYaw, getAroundPitch, getAroundRoll, getAroundRotationOrder, getAroundYaw, getAxisPitch, getAxisRoll, getAxisYaw, getClonedCenter, getLocationAmount, getLocations, getPitch, getRoll, getRotationOrder, getTotalDistance, getWorld, getYaw, move, move, move, rotate, rotateAroundLocation, scale, setAroundAxisPitch, setAroundAxisRoll, setAroundAxisRotation, setAroundAxisYaw, setAroundPitch, setAroundRoll, setAroundRotation, setAroundRotationOrder, setAroundYaw, setAxisPitch, setAxisRoll, setAxisRotation, setAxisYaw, setPitch, setRoll, setRotation, setRotationOrder, setYaw
-
Field Details
-
rng
-
text
-
font
-
xRadius
protected double xRadius -
zRadius
protected double zRadius -
inverted
protected boolean inverted -
centered
protected boolean centered -
borderX
protected int borderX -
borderZ
protected int borderZ -
image
-
remakeImage
protected boolean remakeImage -
width
protected int width -
height
protected int height -
startX
protected int startX -
startZ
protected int startZ
-
-
Constructor Details
-
ParticleText
public ParticleText(Particle particle, LocationSafe center, double xRadius, double zRadius, int particleFrequency, String... text) -
ParticleText
public ParticleText(Particle particle, LocationSafe center, double xRadius, double zRadius, String... text) -
ParticleText
public ParticleText(Particle particle, LocationSafe center, double radius, int particleFrequency, String... text) -
ParticleText
-
-
Method Details
-
display
public void display()- Specified by:
displayin interfaceShape- Specified by:
displayin classParticleShaper
-
clone
- Specified by:
clonein interfaceShape- Overrides:
clonein classParticleShaper
-
cloneConstructor
- Specified by:
cloneConstructorin classParticleShaper
-
scale
public void scale(double x, double y, double z) Description copied from interface:ShapeRescales this shape such that a shape with the xyz radiuses of 4, 3, 4, resized by 1.25, 1.25, 1.25, would have its radiuses become 5, 3.75, 5.- Specified by:
scalein interfaceShape- Overrides:
scalein classRotationHandler- Parameters:
x- x scaley- y scalez- z scale
-
remakeImage
protected void remakeImage() -
addLines
-
addLines
-
removeLine
public void removeLine(int line) -
setFont
-
setLine
-
setCenter
-
setXRadius
public void setXRadius(double xRadius) -
setZRadius
public void setZRadius(double zRadius) -
setInverted
- Parameters:
inverted- whether particles should appear within the text or outlining the text, default false
-
setCentered
- Parameters:
centered- whether the text should be centered or not, default true
-
setBorderX
- Parameters:
borderX- how wide the border around the text should be, only used ifisInverted()is true.
-
setBorderZ
- Parameters:
borderZ- how tall the border around the text should be, only used ifisInverted()is true.
-
getFont
-
getLine
-
getCenter
public org.bukkit.Location getCenter() -
getXRadius
public double getXRadius() -
getZRadius
public double getZRadius() -
isInverted
public boolean isInverted()- Returns:
- whether particles should appear within the text or outlining the text, default false
-
isCentered
public boolean isCentered()- Returns:
- whether the text should be centered or not, default true
-
getBorderX
public int getBorderX()- Returns:
- how wide the border around the text should be, only used if
isInverted()is true.
-
getBorderZ
public int getBorderZ()- Returns:
- how tall the border around the text should be, only used if
isInverted()is true.
-
getText
-
getLineAmount
public int getLineAmount()
-