Record Class PluginSettings.RendererDefaults
java.lang.Object
java.lang.Record
dev.despical.particletext.config.PluginSettings.RendererDefaults
- Enclosing class:
PluginSettings
-
Constructor Summary
ConstructorsConstructorDescriptionRendererDefaults(org.bukkit.Particle particle, double scale, boolean inverted, boolean enabled, FontSpec font) Creates an instance of aRendererDefaultsrecord 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.booleaninverted()Returns the value of theinvertedrecord component.org.bukkit.Particleparticle()Returns the value of theparticlerecord component.doublescale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RendererDefaults
public RendererDefaults(org.bukkit.Particle particle, double scale, boolean inverted, boolean enabled, FontSpec font) Creates an instance of aRendererDefaultsrecord class.- Parameters:
particle- the value for theparticlerecord componentscale- the value for thescalerecord componentinverted- the value for theinvertedrecord componentenabled- the value for theenabledrecord componentfont- the value for thefontrecord component
-
-
Method Details
-
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. -
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
-