Record Class RendererData

java.lang.Object
java.lang.Record
dev.despical.particletext.model.RendererData

public record RendererData(String id, String text, org.bukkit.Particle particle, double scale, boolean inverted, boolean enabled, FontSpec font, Rotation rotation, RendererLocation location) extends Record
  • 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 a RendererData record class.
      Parameters:
      id - the value for the id record component
      text - the value for the text record component
      particle - the value for the particle record component
      scale - the value for the scale record component
      inverted - the value for the inverted record component
      enabled - the value for the enabled record component
      font - the value for the font record component
      rotation - the value for the rotation record component
      location - the value for the location record component
  • Method Details

    • withText

      public RendererData withText(String value)
    • withParticle

      public RendererData withParticle(org.bukkit.Particle value)
    • withScale

      public RendererData withScale(double value)
    • withEnabled

      public RendererData withEnabled(boolean value)
    • withInverted

      public RendererData withInverted(boolean value)
    • withFont

      public RendererData withFont(FontSpec value)
    • withRotation

      public RendererData withRotation(Rotation value)
    • withLocation

      public RendererData withLocation(RendererLocation value)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • text

      public String text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • particle

      public org.bukkit.Particle particle()
      Returns the value of the particle record component.
      Returns:
      the value of the particle record component
    • scale

      public double scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • inverted

      public boolean inverted()
      Returns the value of the inverted record component.
      Returns:
      the value of the inverted record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • font

      public FontSpec font()
      Returns the value of the font record component.
      Returns:
      the value of the font record component
    • rotation

      public Rotation rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • location

      public RendererLocation location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component