Package kr.toxicity.model.api.pack
Record Class PackObfuscator.Pair
java.lang.Object
java.lang.Record
kr.toxicity.model.api.pack.PackObfuscator.Pair
- Record Components:
models- the models obfuscatortextures- the textures obfuscator
- Enclosing interface:
PackObfuscator
public static record PackObfuscator.Pair(@NotNull PackObfuscator models, @NotNull PackObfuscator textures)
extends Record
A pair of obfuscators for models and textures.
- Since:
- 1.15.2
-
Constructor Summary
ConstructorsConstructorDescriptionPair(@NotNull PackObfuscator models, @NotNull PackObfuscator textures) Creates an instance of aPairrecord 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.@NotNull PackObfuscatormodels()Returns the value of themodelsrecord component.@NotNull PackObfuscatortextures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
models
Returns the value of themodelsrecord component.- Returns:
- the value of the
modelsrecord component
-
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-