Record Class BedrockCharacterProfiles.PreparedClassicCharacter
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockCharacterProfiles.PreparedClassicCharacter
- All Implemented Interfaces:
BedrockCharacterProfiles.PreparedCharacter
- Enclosing class:
BedrockCharacterProfiles
public static record BedrockCharacterProfiles.PreparedClassicCharacter(BedrockCharacterProfiles.Slot slot, BedrockClassicSkinPack pack, BedrockClassicSkinPack.Skin skin)
extends Record
implements BedrockCharacterProfiles.PreparedCharacter
-
Constructor Summary
ConstructorsConstructorDescriptionPreparedClassicCharacter(BedrockCharacterProfiles.Slot slot, BedrockClassicSkinPack pack, BedrockClassicSkinPack.Skin skin) Creates an instance of aPreparedClassicCharacterrecord 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) pack()Returns the value of thepackrecord component.skin()Returns the value of theskinrecord 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
-
PreparedClassicCharacter
public PreparedClassicCharacter(BedrockCharacterProfiles.Slot slot, BedrockClassicSkinPack pack, BedrockClassicSkinPack.Skin skin) Creates an instance of aPreparedClassicCharacterrecord class.- Parameters:
slot- the value for theslotrecord componentpack- the value for thepackrecord componentskin- the value for theskinrecord component
-
-
Method Details
-
importInto
public BedrockAppearanceStore.Appearance importInto(BedrockAppearanceStore store, String accountId) throws IOException - Specified by:
importIntoin interfaceBedrockCharacterProfiles.PreparedCharacter- Throws:
IOException
-
skinData
- Specified by:
skinDatain interfaceBedrockCharacterProfiles.PreparedCharacter- Throws:
IOException
-
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
-
pack
Returns the value of thepackrecord component.- Returns:
- the value of the
packrecord component
-
skin
Returns the value of theskinrecord component.- Returns:
- the value of the
skinrecord component
-