Record Class BedrockCharacterProfiles.AccountWardrobe
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockCharacterProfiles.AccountWardrobe
- Enclosing class:
BedrockCharacterProfiles
public static record BedrockCharacterProfiles.AccountWardrobe(List<BedrockCharacterProfiles.Slot> slots, int activeSlot, int profileVersion, com.google.gson.JsonObject settingsProfile)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAccountWardrobe(List<BedrockCharacterProfiles.Slot> slots, int activeSlot, int profileVersion, com.google.gson.JsonObject settingsProfile) Creates an instance of aAccountWardroberecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveSlotrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theprofileVersionrecord component.com.google.gson.JsonObjectReturns the value of thesettingsProfilerecord component.slots()Returns the value of theslotsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountWardrobe
public AccountWardrobe(List<BedrockCharacterProfiles.Slot> slots, int activeSlot, int profileVersion, com.google.gson.JsonObject settingsProfile) Creates an instance of aAccountWardroberecord class.- Parameters:
slots- the value for theslotsrecord componentactiveSlot- the value for theactiveSlotrecord componentprofileVersion- the value for theprofileVersionrecord componentsettingsProfile- the value for thesettingsProfilerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
slots
Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
activeSlot
public int activeSlot()Returns the value of theactiveSlotrecord component.- Returns:
- the value of the
activeSlotrecord component
-
profileVersion
public int profileVersion()Returns the value of theprofileVersionrecord component.- Returns:
- the value of the
profileVersionrecord component
-
settingsProfile
public com.google.gson.JsonObject settingsProfile()Returns the value of thesettingsProfilerecord component.- Returns:
- the value of the
settingsProfilerecord component
-