Record Class BedrockCharacterProfiles.PreparedPersonaCharacter
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockCharacterProfiles.PreparedPersonaCharacter
- All Implemented Interfaces:
BedrockCharacterProfiles.PreparedCharacter
- Enclosing class:
BedrockCharacterProfiles
public static record BedrockCharacterProfiles.PreparedPersonaCharacter(BedrockCharacterProfiles.Slot slot, BedrockPersonaModel.Converted model, BedrockPersonaProfile profile)
extends Record
implements BedrockCharacterProfiles.PreparedCharacter
-
Constructor Summary
ConstructorsConstructorDescriptionPreparedPersonaCharacter(BedrockCharacterProfiles.Slot slot, BedrockPersonaModel.Converted model, BedrockPersonaProfile profile) Creates an instance of aPreparedPersonaCharacterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.importInto(BedrockAppearanceStore store, String accountId) model()Returns the value of themodelrecord component.profile()Returns the value of theprofilerecord component.net.raphimc.viabedrock.protocol.model.SkinDataskinData()slot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreparedPersonaCharacter
public PreparedPersonaCharacter(BedrockCharacterProfiles.Slot slot, BedrockPersonaModel.Converted model, BedrockPersonaProfile profile) Creates an instance of aPreparedPersonaCharacterrecord class.- Parameters:
slot- the value for theslotrecord componentmodel- the value for themodelrecord componentprofile- the value for theprofilerecord component
-
-
Method Details
-
importInto
public BedrockAppearanceStore.Appearance importInto(BedrockAppearanceStore store, String accountId) throws IOException - Specified by:
importIntoin interfaceBedrockCharacterProfiles.PreparedCharacter- Throws:
IOException
-
skinData
public net.raphimc.viabedrock.protocol.model.SkinData skinData()- Specified by:
skinDatain interfaceBedrockCharacterProfiles.PreparedCharacter
-
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). -
slot
Returns the value of theslotrecord component.- Specified by:
slotin interfaceBedrockCharacterProfiles.PreparedCharacter- Returns:
- the value of the
slotrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-