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, int maxParticlesPerTick, int chatPageSize, double defaultMoveAmount)
extends Record
Holds the validated global settings for one plugin configuration snapshot.
Nested immutable records describe renderer defaults, inventory materials and sounds. Services read a complete snapshot instead of traversing mutable YAML during rendering.
Creation defaults are copied into new renderer records. Global budgets, visibility, sampling, and presentation remain separate so reloading does not silently replace saved renderer-specific values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionPluginSettings(boolean updatesEnabled, int renderIntervalTicks, int initialDelayTicks, double viewDistance, int pixelStep, int maxPointsPerRenderer, int maxTextLength, boolean forceParticles, int placeholderRefreshTicks, PluginSettings.RendererDefaults defaults, PluginSettings.MenuSettings menu, int maxParticlesPerTick, int chatPageSize, double defaultMoveAmount) Creates an instance of aPluginSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechatPageSizerecord component.doubleReturns the value of thedefaultMoveAmountrecord component.defaults()Returns the value of thedefaultsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceParticlesrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theinitialDelayTicksrecord component.intReturns the value of themaxParticlesPerTickrecord component.intReturns the value of themaxPointsPerRendererrecord component.intReturns the value of themaxTextLengthrecord component.menu()Returns the value of themenurecord component.intReturns the value of thepixelSteprecord component.intReturns the value of theplaceholderRefreshTicksrecord component.intReturns the value of therenderIntervalTicksrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theupdatesEnabledrecord component.doubleReturns the value of theviewDistancerecord component.double
-
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, int maxParticlesPerTick, int chatPageSize, double defaultMoveAmount) Creates an instance of aPluginSettingsrecord class.- Parameters:
updatesEnabled- the value for theupdatesEnabledrecord componentrenderIntervalTicks- the value for therenderIntervalTicksrecord componentinitialDelayTicks- the value for theinitialDelayTicksrecord componentviewDistance- the value for theviewDistancerecord componentpixelStep- the value for thepixelSteprecord componentmaxPointsPerRenderer- the value for themaxPointsPerRendererrecord componentmaxTextLength- the value for themaxTextLengthrecord componentforceParticles- the value for theforceParticlesrecord componentplaceholderRefreshTicks- the value for theplaceholderRefreshTicksrecord componentdefaults- the value for thedefaultsrecord componentmenu- the value for themenurecord componentmaxParticlesPerTick- the value for themaxParticlesPerTickrecord componentchatPageSize- the value for thechatPageSizerecord componentdefaultMoveAmount- the value for thedefaultMoveAmountrecord component
-
-
Method Details
-
viewDistanceSquared
public double viewDistanceSquared() -
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. -
updatesEnabled
public boolean updatesEnabled()Returns the value of theupdatesEnabledrecord component.- Returns:
- the value of the
updatesEnabledrecord component
-
renderIntervalTicks
public int renderIntervalTicks()Returns the value of therenderIntervalTicksrecord component.- Returns:
- the value of the
renderIntervalTicksrecord component
-
initialDelayTicks
public int initialDelayTicks()Returns the value of theinitialDelayTicksrecord component.- Returns:
- the value of the
initialDelayTicksrecord component
-
viewDistance
public double viewDistance()Returns the value of theviewDistancerecord component.- Returns:
- the value of the
viewDistancerecord component
-
pixelStep
public int pixelStep()Returns the value of thepixelSteprecord component.- Returns:
- the value of the
pixelSteprecord component
-
maxPointsPerRenderer
public int maxPointsPerRenderer()Returns the value of themaxPointsPerRendererrecord component.- Returns:
- the value of the
maxPointsPerRendererrecord component
-
maxTextLength
public int maxTextLength()Returns the value of themaxTextLengthrecord component.- Returns:
- the value of the
maxTextLengthrecord component
-
forceParticles
public boolean forceParticles()Returns the value of theforceParticlesrecord component.- Returns:
- the value of the
forceParticlesrecord component
-
placeholderRefreshTicks
public int placeholderRefreshTicks()Returns the value of theplaceholderRefreshTicksrecord component.- Returns:
- the value of the
placeholderRefreshTicksrecord component
-
defaults
Returns the value of thedefaultsrecord component.- Returns:
- the value of the
defaultsrecord component
-
maxParticlesPerTick
public int maxParticlesPerTick()Returns the value of themaxParticlesPerTickrecord component.- Returns:
- the value of the
maxParticlesPerTickrecord component
-
chatPageSize
public int chatPageSize()Returns the value of thechatPageSizerecord component.- Returns:
- the value of the
chatPageSizerecord component
-
defaultMoveAmount
public double defaultMoveAmount()Returns the value of thedefaultMoveAmountrecord component.- Returns:
- the value of the
defaultMoveAmountrecord component
-