Record Class BedrockCharacterProfiles.Slot
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockCharacterProfiles.Slot
- Enclosing class:
BedrockCharacterProfiles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarm()Returns the value of thearmrecord component.booleanclassic()booleanfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnumber()Returns the value of thenumberrecord component.booleanoccupied()pieceIds()Returns the value of thepieceIdsrecord component.com.google.gson.JsonObjectprofile()Returns the value of theprofilerecord component.Returns the value of theprofileHashrecord component.Returns the value of theskinColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Slot
public Slot(int number, String arm, String skinColor, List<String> pieceIds, String profileHash, com.google.gson.JsonObject profile) Creates an instance of aSlotrecord class.- Parameters:
number- the value for thenumberrecord componentarm- the value for thearmrecord componentskinColor- the value for theskinColorrecord componentpieceIds- the value for thepieceIdsrecord componentprofileHash- the value for theprofileHashrecord componentprofile- the value for theprofilerecord component
-
-
Method Details
-
occupied
public boolean occupied() -
classic
public boolean classic() -
classicSlim
public boolean classicSlim() -
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. -
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
arm
Returns the value of thearmrecord component.- Returns:
- the value of the
armrecord component
-
skinColor
Returns the value of theskinColorrecord component.- Returns:
- the value of the
skinColorrecord component
-
pieceIds
-
profileHash
Returns the value of theprofileHashrecord component.- Returns:
- the value of the
profileHashrecord component
-
profile
public com.google.gson.JsonObject profile()Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-