Record Class RendererData
java.lang.Object
java.lang.Record
dev.despical.particletext.model.RendererData
-
Constructor Summary
ConstructorsConstructorDescriptionRendererData(String id, String text, org.bukkit.Particle particle, double scale, boolean inverted, boolean enabled, FontSpec font, Rotation rotation, RendererLocation location) Creates an instance of aRendererDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.font()Returns the value of thefontrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleaninverted()Returns the value of theinvertedrecord component.location()Returns the value of thelocationrecord component.org.bukkit.Particleparticle()Returns the value of theparticlerecord component.rotation()Returns the value of therotationrecord component.doublescale()Returns the value of thescalerecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.withEnabled(boolean value) withInverted(boolean value) withLocation(RendererLocation value) withParticle(org.bukkit.Particle value) withRotation(Rotation value) withScale(double value)
-
Constructor Details
-
RendererData
public RendererData(String id, String text, org.bukkit.Particle particle, double scale, boolean inverted, boolean enabled, FontSpec font, Rotation rotation, RendererLocation location) Creates an instance of aRendererDatarecord class.- Parameters:
id- the value for theidrecord componenttext- the value for thetextrecord componentparticle- the value for theparticlerecord componentscale- the value for thescalerecord componentinverted- the value for theinvertedrecord componentenabled- the value for theenabledrecord componentfont- the value for thefontrecord componentrotation- the value for therotationrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
withText
-
withParticle
-
withScale
-
withEnabled
-
withInverted
-
withFont
-
withRotation
-
withLocation
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
particle
public org.bukkit.Particle particle()Returns the value of theparticlerecord component.- Returns:
- the value of the
particlerecord component
-
scale
public double scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
inverted
public boolean inverted()Returns the value of theinvertedrecord component.- Returns:
- the value of the
invertedrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
font
Returns the value of thefontrecord component.- Returns:
- the value of the
fontrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-