Record Class BedrockPersonaProfile
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockPersonaProfile
-
Constructor Summary
ConstructorsConstructorDescriptionBedrockPersonaProfile(List<net.raphimc.viabedrock.protocol.model.SkinData.PersonaPieceData> pieces, List<net.raphimc.viabedrock.protocol.model.SkinData.PersonaPieceTintData> tints) Creates an instance of aBedrockPersonaProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static BedrockPersonaProfilefrom(BedrockCharacterProfiles.Slot slot, List<BedrockCharacterProfiles.WardrobeItem> catalog) static BedrockPersonaProfilefromJson(com.google.gson.JsonObject json) final inthashCode()Returns a hash code value for this object.List<net.raphimc.viabedrock.protocol.model.SkinData.PersonaPieceData> pieces()Returns the value of thepiecesrecord component.List<net.raphimc.viabedrock.protocol.model.SkinData.PersonaPieceTintData> tints()Returns the value of thetintsrecord component.com.google.gson.JsonObjecttoJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BedrockPersonaProfile
public BedrockPersonaProfile(List<net.raphimc.viabedrock.protocol.model.SkinData.PersonaPieceData> pieces, List<net.raphimc.viabedrock.protocol.model.SkinData.PersonaPieceTintData> tints) Creates an instance of aBedrockPersonaProfilerecord class.- Parameters:
pieces- the value for thepiecesrecord componenttints- the value for thetintsrecord component
-
-
Method Details
-
from
public static BedrockPersonaProfile from(BedrockCharacterProfiles.Slot slot, List<BedrockCharacterProfiles.WardrobeItem> catalog) throws IOException - Throws:
IOException
-
pieceClaims
-
tintClaims
-
toJson
public com.google.gson.JsonObject toJson() -
fromJson
-
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). -
pieces
Returns the value of thepiecesrecord component.- Returns:
- the value of the
piecesrecord component
-
tints
Returns the value of thetintsrecord component.- Returns:
- the value of the
tintsrecord component
-