Record Class BedrockScoreboardImages.Image
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.hud.BedrockScoreboardImages.Image
- Enclosing class:
BedrockScoreboardImages
public static record BedrockScoreboardImages.Image(net.minecraft.resources.Identifier font, net.minecraft.resources.Identifier texture, int width, int height, int offsetX, int offsetY, int rowHeight, BedrockScoreboardImages.Background background, int sourceWidth, int sourceHeight, boolean keepRatio)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionImage(net.minecraft.resources.Identifier font, net.minecraft.resources.Identifier texture, int width, int height, int offsetX, int offsetY, int rowHeight, BedrockScoreboardImages.Background background, int sourceWidth, int sourceHeight, boolean keepRatio) Creates an instance of aImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.Identifierfont()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.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.intReturns the value of thesourceWidthrecord component.net.minecraft.resources.Identifiertexture()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
-
Image
public Image(net.minecraft.resources.Identifier font, net.minecraft.resources.Identifier texture, int width, int height, int offsetX, int offsetY, int rowHeight, BedrockScoreboardImages.Background background, int sourceWidth, int sourceHeight, boolean keepRatio) Creates an instance of aImagerecord class.- Parameters:
font- 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 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. -
font
public net.minecraft.resources.Identifier font()Returns the value of thefontrecord component.- Returns:
- the value of the
fontrecord component
-
texture
public net.minecraft.resources.Identifier 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
-
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
-