Record Class BedrockScoreboardImages.Background
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.hud.BedrockScoreboardImages.Background
- Enclosing class:
BedrockScoreboardImages
public static record BedrockScoreboardImages.Background(net.minecraft.resources.Identifier texture, float alpha, int baseWidth, int baseHeight, int slice, int paddingX, int paddingY, int rowOffsetX, int rowOffsetY)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBackground(net.minecraft.resources.Identifier texture, float alpha, int baseWidth, int baseHeight, int slice, int paddingX, int paddingY, int rowOffsetX, int rowOffsetY) Creates an instance of aBackgroundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.intReturns the value of thebaseHeightrecord component.intReturns the value of thebaseWidthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpaddingX()Returns the value of thepaddingXrecord component.intpaddingY()Returns the value of thepaddingYrecord component.intReturns the value of therowOffsetXrecord component.intReturns the value of therowOffsetYrecord component.intslice()Returns the value of theslicerecord component.net.minecraft.resources.Identifiertexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Background
public Background(net.minecraft.resources.Identifier texture, float alpha, int baseWidth, int baseHeight, int slice, int paddingX, int paddingY, int rowOffsetX, int rowOffsetY) Creates an instance of aBackgroundrecord class.- Parameters:
texture- the value for thetexturerecord componentalpha- the value for thealpharecord componentbaseWidth- the value for thebaseWidthrecord componentbaseHeight- the value for thebaseHeightrecord componentslice- the value for theslicerecord componentpaddingX- the value for thepaddingXrecord componentpaddingY- the value for thepaddingYrecord componentrowOffsetX- the value for therowOffsetXrecord componentrowOffsetY- the value for therowOffsetYrecord 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. -
texture
public net.minecraft.resources.Identifier texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
baseWidth
public int baseWidth()Returns the value of thebaseWidthrecord component.- Returns:
- the value of the
baseWidthrecord component
-
baseHeight
public int baseHeight()Returns the value of thebaseHeightrecord component.- Returns:
- the value of the
baseHeightrecord component
-
slice
public int slice()Returns the value of theslicerecord component.- Returns:
- the value of the
slicerecord component
-
paddingX
public int paddingX()Returns the value of thepaddingXrecord component.- Returns:
- the value of the
paddingXrecord component
-
paddingY
public int paddingY()Returns the value of thepaddingYrecord component.- Returns:
- the value of the
paddingYrecord component
-
rowOffsetX
public int rowOffsetX()Returns the value of therowOffsetXrecord component.- Returns:
- the value of the
rowOffsetXrecord component
-
rowOffsetY
public int rowOffsetY()Returns the value of therowOffsetYrecord component.- Returns:
- the value of the
rowOffsetYrecord component
-