Record Class CommonAssetRegistry.PackAsset
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.asset.common.CommonAssetRegistry.PackAsset
- Enclosing class:
CommonAssetRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommonAssetThe field for theassetrecord component.private final StringThe field for thepackrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPackAsset(String pack, CommonAsset asset) Creates an instance of aPackAssetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasset()Returns the value of theassetrecord component.booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pack()Returns the value of thepackrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
pack
The field for thepackrecord component. -
asset
The field for theassetrecord component.
-
-
Constructor Details
-
PackAsset
Creates an instance of aPackAssetrecord class.- Parameters:
pack- the value for thepackrecord componentasset- the value for theassetrecord component
-
-
Method Details
-
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). -
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. -
pack
Returns the value of thepackrecord component.- Returns:
- the value of the
packrecord component
-
asset
Returns the value of theassetrecord component.- Returns:
- the value of the
assetrecord component
-