Package codechicken.lib.gui.modular.lib
Record Class DynamicTextures.DynamicTexture
java.lang.Object
java.lang.Record
codechicken.lib.gui.modular.lib.DynamicTextures.DynamicTexture
- Enclosing interface:
- DynamicTextures
public static record DynamicTextures.DynamicTexture(net.minecraft.resources.ResourceLocation dynamicInput, net.minecraft.resources.ResourceLocation outputLocation, int width, int height, int topBorder, int leftBorder, int bottomBorder, int rightBorder)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicTexture(net.minecraft.resources.ResourceLocation dynamicInput, net.minecraft.resources.ResourceLocation outputLocation, int width, int height, int topBorder, int leftBorder, int bottomBorder, int rightBorder) Creates an instance of aDynamicTexturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebottomBorderrecord component.net.minecraft.resources.ResourceLocationReturns the value of thedynamicInputrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intReturns the value of theleftBorderrecord component.net.minecraft.resources.ResourceLocationReturns the value of theoutputLocationrecord component.intReturns the value of therightBorderrecord component.intReturns the value of thetopBorderrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
DynamicTexture
public DynamicTexture(net.minecraft.resources.ResourceLocation dynamicInput, net.minecraft.resources.ResourceLocation outputLocation, int width, int height, int topBorder, int leftBorder, int bottomBorder, int rightBorder) Creates an instance of aDynamicTexturerecord class.- Parameters:
dynamicInput- the value for thedynamicInputrecord componentoutputLocation- the value for theoutputLocationrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componenttopBorder- the value for thetopBorderrecord componentleftBorder- the value for theleftBorderrecord componentbottomBorder- the value for thebottomBorderrecord componentrightBorder- the value for therightBorderrecord component
-
-
Method Details
-
guiTexturePath
-
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 '=='. -
dynamicInput
public net.minecraft.resources.ResourceLocation dynamicInput()Returns the value of thedynamicInputrecord component.- Returns:
- the value of the
dynamicInputrecord component
-
outputLocation
public net.minecraft.resources.ResourceLocation outputLocation()Returns the value of theoutputLocationrecord component.- Returns:
- the value of the
outputLocationrecord 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
-
topBorder
public int topBorder()Returns the value of thetopBorderrecord component.- Returns:
- the value of the
topBorderrecord component
-
leftBorder
public int leftBorder()Returns the value of theleftBorderrecord component.- Returns:
- the value of the
leftBorderrecord component
-
bottomBorder
public int bottomBorder()Returns the value of thebottomBorderrecord component.- Returns:
- the value of the
bottomBorderrecord component
-
rightBorder
public int rightBorder()Returns the value of therightBorderrecord component.- Returns:
- the value of the
rightBorderrecord component
-