Record Class ScoreboardUiDefinitions.SidebarImage
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.resourcepack.definition.ScoreboardUiDefinitions.SidebarImage
- Enclosing class:
ScoreboardUiDefinitions
public static record ScoreboardUiDefinitions.SidebarImage(String match, String font, String texture, int width, int height, int offsetX, int offsetY, int rowHeight, String sourcePath, ScoreboardUiDefinitions.PanelBackground background, int sourceWidth, int sourceHeight, boolean keepRatio)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSidebarImage(String match, String font, String texture, int width, int height, int offsetX, int offsetY, int rowHeight, String sourcePath, ScoreboardUiDefinitions.PanelBackground background, int sourceWidth, int sourceHeight, boolean keepRatio) Creates an instance of aSidebarImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundrecord component.final booleanIndicates whether some other object is "equal to" this one.font()Returns the value of thefontrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.booleanReturns the value of thekeepRatiorecord component.match()Returns the value of thematchrecord component.intoffsetX()Returns the value of theoffsetXrecord component.intoffsetY()Returns the value of theoffsetYrecord component.intReturns the value of therowHeightrecord component.intReturns the value of thesourceHeightrecord component.Returns the value of thesourcePathrecord component.intReturns the value of thesourceWidthrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
SidebarImage
public SidebarImage(String match, String font, String texture, int width, int height, int offsetX, int offsetY, int rowHeight, String sourcePath, ScoreboardUiDefinitions.PanelBackground background, int sourceWidth, int sourceHeight, boolean keepRatio) Creates an instance of aSidebarImagerecord class.- Parameters:
match- the value for thematchrecord componentfont- the value for thefontrecord componenttexture- the value for thetexturerecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentoffsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord componentrowHeight- the value for therowHeightrecord componentsourcePath- the value for thesourcePathrecord componentbackground- the value for thebackgroundrecord componentsourceWidth- the value for thesourceWidthrecord componentsourceHeight- the value for thesourceHeightrecord componentkeepRatio- the value for thekeepRatiorecord component
-
-
Method Details
-
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. -
match
Returns the value of thematchrecord component.- Returns:
- the value of the
matchrecord component
-
font
Returns the value of thefontrecord component.- Returns:
- the value of the
fontrecord component
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
offsetX
public int offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the
offsetXrecord component
-
offsetY
public int offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the
offsetYrecord component
-
rowHeight
public int rowHeight()Returns the value of therowHeightrecord component.- Returns:
- the value of the
rowHeightrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
background
Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-
sourceWidth
public int sourceWidth()Returns the value of thesourceWidthrecord component.- Returns:
- the value of the
sourceWidthrecord component
-
sourceHeight
public int sourceHeight()Returns the value of thesourceHeightrecord component.- Returns:
- the value of the
sourceHeightrecord component
-
keepRatio
public boolean keepRatio()Returns the value of thekeepRatiorecord component.- Returns:
- the value of the
keepRatiorecord component
-