Package fr.smolder.mirage.core.model
Record Class MotdRender
java.lang.Object
java.lang.Record
fr.smolder.mirage.core.model.MotdRender
public record MotdRender(MotdRender.RenderState state, String modernJson, String fallbackText, List<String> missingTileHashes, int columns, List<RenderedSkin> orderedSkins, List<MotdRender.LineStyle> lineStyles)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionMotdRender(MotdRender.RenderState state, String modernJson, String fallbackText, List<String> missingTileHashes, int columns, List<RenderedSkin> orderedSkins, List<MotdRender.LineStyle> lineStyles) Creates an instance of aMotdRenderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackTextrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelineStylesrecord component.static MotdRenderReturns the value of themissingTileHashesrecord component.Returns the value of themodernJsonrecord component.Returns the value of theorderedSkinsrecord component.static MotdRenderready(String modernJson, String fallbackText, int columns, List<RenderedSkin> orderedSkins) static MotdRenderready(String modernJson, String fallbackText, int columns, List<RenderedSkin> orderedSkins, List<MotdRender.LineStyle> lineStyles) state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MotdRender
public MotdRender(MotdRender.RenderState state, String modernJson, String fallbackText, List<String> missingTileHashes, int columns, List<RenderedSkin> orderedSkins, List<MotdRender.LineStyle> lineStyles) Creates an instance of aMotdRenderrecord class.- Parameters:
state- the value for thestaterecord componentmodernJson- the value for themodernJsonrecord componentfallbackText- the value for thefallbackTextrecord componentmissingTileHashes- the value for themissingTileHashesrecord componentcolumns- the value for thecolumnsrecord componentorderedSkins- the value for theorderedSkinsrecord componentlineStyles- the value for thelineStylesrecord component
-
-
Method Details
-
ready
public static MotdRender ready(String modernJson, String fallbackText, int columns, List<RenderedSkin> orderedSkins) -
ready
public static MotdRender ready(String modernJson, String fallbackText, int columns, List<RenderedSkin> orderedSkins, List<MotdRender.LineStyle> lineStyles) -
loading
-
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. -
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. -
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 '=='. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
modernJson
Returns the value of themodernJsonrecord component.- Returns:
- the value of the
modernJsonrecord component
-
fallbackText
Returns the value of thefallbackTextrecord component.- Returns:
- the value of the
fallbackTextrecord component
-
missingTileHashes
Returns the value of themissingTileHashesrecord component.- Returns:
- the value of the
missingTileHashesrecord component
-
columns
public int columns()Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
orderedSkins
Returns the value of theorderedSkinsrecord component.- Returns:
- the value of the
orderedSkinsrecord component
-
lineStyles
Returns the value of thelineStylesrecord component.- Returns:
- the value of the
lineStylesrecord component
-