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
-
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) Creates an instance of aPluginSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()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 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) 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 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
-