Record Class ThemeManager.LoadedTheme
java.lang.Object
java.lang.Record
cromveil.combatnumbers.client.theme.ThemeManager.LoadedTheme
- Enclosing class:
ThemeManager
public static record ThemeManager.LoadedTheme(Map<net.minecraft.resources.Identifier, SkinDefinition> skins, Map<net.minecraft.resources.Identifier, Timeline> animations, TextureByteSource textureBytes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLoadedTheme(Map<net.minecraft.resources.Identifier, SkinDefinition> skins, Map<net.minecraft.resources.Identifier, Timeline> animations, TextureByteSource textureBytes) Creates an instance of aLoadedThemerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<net.minecraft.resources.Identifier, SkinDefinition> skins()Returns the value of theskinsrecord component.Returns the value of thetextureBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoadedTheme
public LoadedTheme(Map<net.minecraft.resources.Identifier, SkinDefinition> skins, Map<net.minecraft.resources.Identifier, Timeline> animations, TextureByteSource textureBytes) Creates an instance of aLoadedThemerecord class.- Parameters:
skins- the value for theskinsrecord componentanimations- the value for theanimationsrecord componenttextureBytes- the value for thetextureBytesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
skins
Returns the value of theskinsrecord component.- Returns:
- the value of the
skinsrecord component
-
animations
-
textureBytes
Returns the value of thetextureBytesrecord component.- Returns:
- the value of the
textureBytesrecord component
-