Record Class ResolvableProfile
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.ResolvableProfile
public record ResolvableProfile(GameProfile profile, @Nullable String bodyTexture, @Nullable String capeTexture, @Nullable String elytraTexture, @Nullable Integer modelType)
extends Record
Profile that can be either dynamically filled by the client or is already static.
The additional fields are optional overrides.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvableProfile(GameProfile profile) ResolvableProfile(GameProfile profile, @Nullable String bodyTexture, @Nullable String capeTexture, @Nullable String elytraTexture, @Nullable Integer modelType) Creates an instance of aResolvableProfilerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thebodyTexturerecord component.@Nullable StringReturns the value of thecapeTexturerecord component.@Nullable StringReturns the value of theelytraTexturerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable IntegerReturns the value of themodelTyperecord component.profile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvableProfile
-
ResolvableProfile
public ResolvableProfile(GameProfile profile, @Nullable String bodyTexture, @Nullable String capeTexture, @Nullable String elytraTexture, @Nullable Integer modelType) Creates an instance of aResolvableProfilerecord class.- Parameters:
profile- the value for theprofilerecord componentbodyTexture- the value for thebodyTexturerecord componentcapeTexture- the value for thecapeTexturerecord componentelytraTexture- the value for theelytraTexturerecord componentmodelType- the value for themodelTyperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
bodyTexture
Returns the value of thebodyTexturerecord component.- Returns:
- the value of the
bodyTexturerecord component
-
capeTexture
Returns the value of thecapeTexturerecord component.- Returns:
- the value of the
capeTexturerecord component
-
elytraTexture
Returns the value of theelytraTexturerecord component.- Returns:
- the value of the
elytraTexturerecord component
-
modelType
Returns the value of themodelTyperecord component.- Returns:
- the value of the
modelTyperecord component
-