Record Class BedrockAppearanceStore.Appearance
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockAppearanceStore.Appearance
- Enclosing class:
BedrockAppearanceStore
public static record BedrockAppearanceStore.Appearance(BedrockAppearanceStore.Selection selection, boolean slim, BufferedImage skin, BufferedImage cape, String skinId, String capeId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAppearance(BedrockAppearanceStore.Selection selection, boolean slim, BufferedImage skin, BufferedImage cape, String skinId, String capeId) Creates an instance of aAppearancerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncape()Returns the value of thecaperecord component.capeId()Returns the value of thecapeIdrecord component.booleanfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theselectionrecord component.skin()Returns the value of theskinrecord component.skinId()Returns the value of theskinIdrecord component.booleanslim()Returns the value of theslimrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Appearance
public Appearance(BedrockAppearanceStore.Selection selection, boolean slim, BufferedImage skin, BufferedImage cape, String skinId, String capeId) Creates an instance of aAppearancerecord class.- Parameters:
selection- the value for theselectionrecord componentslim- the value for theslimrecord componentskin- the value for theskinrecord componentcape- the value for thecaperecord componentskinId- the value for theskinIdrecord componentcapeId- the value for thecapeIdrecord component
-
-
Method Details
-
effectiveSlim
public boolean effectiveSlim() -
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. -
selection
Returns the value of theselectionrecord component.- Returns:
- the value of the
selectionrecord component
-
slim
public boolean slim()Returns the value of theslimrecord component.- Returns:
- the value of the
slimrecord component
-
skin
Returns the value of theskinrecord component.- Returns:
- the value of the
skinrecord component
-
cape
Returns the value of thecaperecord component.- Returns:
- the value of the
caperecord component
-
skinId
Returns the value of theskinIdrecord component.- Returns:
- the value of the
skinIdrecord component
-
capeId
Returns the value of thecapeIdrecord component.- Returns:
- the value of the
capeIdrecord component
-