Record Class PluginSettings

java.lang.Object
java.lang.Record
dev.despical.particletext.config.PluginSettings

public record PluginSettings(boolean updatesEnabled, int renderIntervalTicks, int initialDelayTicks, double viewDistance, int pixelStep, int maxPointsPerRenderer, int maxTextLength, boolean forceParticles, int placeholderRefreshTicks, PluginSettings.RendererDefaults defaults, PluginSettings.MenuSettings menu) extends Record
  • Constructor Details

    • PluginSettings

      public PluginSettings(boolean updatesEnabled, int renderIntervalTicks, int initialDelayTicks, double viewDistance, int pixelStep, int maxPointsPerRenderer, int maxTextLength, boolean forceParticles, int placeholderRefreshTicks, PluginSettings.RendererDefaults defaults, PluginSettings.MenuSettings menu)
      Creates an instance of a PluginSettings record class.
      Parameters:
      updatesEnabled - the value for the updatesEnabled record component
      renderIntervalTicks - the value for the renderIntervalTicks record component
      initialDelayTicks - the value for the initialDelayTicks record component
      viewDistance - the value for the viewDistance record component
      pixelStep - the value for the pixelStep record component
      maxPointsPerRenderer - the value for the maxPointsPerRenderer record component
      maxTextLength - the value for the maxTextLength record component
      forceParticles - the value for the forceParticles record component
      placeholderRefreshTicks - the value for the placeholderRefreshTicks record component
      defaults - the value for the defaults record component
      menu - the value for the menu record component
  • Method Details

    • viewDistanceSquared

      public double viewDistanceSquared()
    • 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.
    • updatesEnabled

      public boolean updatesEnabled()
      Returns the value of the updatesEnabled record component.
      Returns:
      the value of the updatesEnabled record component
    • renderIntervalTicks

      public int renderIntervalTicks()
      Returns the value of the renderIntervalTicks record component.
      Returns:
      the value of the renderIntervalTicks record component
    • initialDelayTicks

      public int initialDelayTicks()
      Returns the value of the initialDelayTicks record component.
      Returns:
      the value of the initialDelayTicks record component
    • viewDistance

      public double viewDistance()
      Returns the value of the viewDistance record component.
      Returns:
      the value of the viewDistance record component
    • pixelStep

      public int pixelStep()
      Returns the value of the pixelStep record component.
      Returns:
      the value of the pixelStep record component
    • maxPointsPerRenderer

      public int maxPointsPerRenderer()
      Returns the value of the maxPointsPerRenderer record component.
      Returns:
      the value of the maxPointsPerRenderer record component
    • maxTextLength

      public int maxTextLength()
      Returns the value of the maxTextLength record component.
      Returns:
      the value of the maxTextLength record component
    • forceParticles

      public boolean forceParticles()
      Returns the value of the forceParticles record component.
      Returns:
      the value of the forceParticles record component
    • placeholderRefreshTicks

      public int placeholderRefreshTicks()
      Returns the value of the placeholderRefreshTicks record component.
      Returns:
      the value of the placeholderRefreshTicks record component
    • defaults

      Returns the value of the defaults record component.
      Returns:
      the value of the defaults record component