Package net.litetex.capes.config
Record Class CustomProviderConfig
java.lang.Object
java.lang.Record
net.litetex.capes.config.CustomProviderConfig
-
Constructor Summary
ConstructorsConstructorDescriptionCustomProviderConfig(String id, String name, String uriTemplate) CustomProviderConfig(String id, String name, String uriTemplate, Boolean animated, @Nullable String textureResolverId, String changeCapeUrl, String homepage, List<String> antiFeatures, Double rateLimitedReqPerSec) Creates an instance of aCustomProviderConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanimated()Returns the value of theanimatedrecord component.Returns the value of theantiFeaturesrecord component.Returns the value of thechangeCapeUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.homepage()Returns the value of thehomepagerecord component.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of therateLimitedReqPerSecrecord component.@Nullable StringReturns the value of thetextureResolverIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuriTemplaterecord component.
-
Constructor Details
-
CustomProviderConfig
public CustomProviderConfig(String id, String name, String uriTemplate, Boolean animated, @Nullable @Nullable String textureResolverId, String changeCapeUrl, String homepage, List<String> antiFeatures, Double rateLimitedReqPerSec) Creates an instance of aCustomProviderConfigrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componenturiTemplate- the value for theuriTemplaterecord componentanimated- the value for theanimatedrecord componenttextureResolverId- the value for thetextureResolverIdrecord componentchangeCapeUrl- the value for thechangeCapeUrlrecord componenthomepage- the value for thehomepagerecord componentantiFeatures- the value for theantiFeaturesrecord componentrateLimitedReqPerSec- the value for therateLimitedReqPerSecrecord component
-
CustomProviderConfig
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
uriTemplate
Returns the value of theuriTemplaterecord component.- Returns:
- the value of the
uriTemplaterecord component
-
animated
Returns the value of theanimatedrecord component.- Returns:
- the value of the
animatedrecord component
-
textureResolverId
Returns the value of thetextureResolverIdrecord component.- Returns:
- the value of the
textureResolverIdrecord component
-
changeCapeUrl
Returns the value of thechangeCapeUrlrecord component.- Returns:
- the value of the
changeCapeUrlrecord component
-
homepage
Returns the value of thehomepagerecord component.- Returns:
- the value of the
homepagerecord component
-
antiFeatures
Returns the value of theantiFeaturesrecord component.- Returns:
- the value of the
antiFeaturesrecord component
-
rateLimitedReqPerSec
Returns the value of therateLimitedReqPerSecrecord component.- Returns:
- the value of the
rateLimitedReqPerSecrecord component
-