Record Class PrefabStore.AssetPackPrefabPath
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.prefab.PrefabStore.AssetPackPrefabPath
- Enclosing class:
PrefabStore
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAssetPackPrefabPath(AssetPack pack, Path prefabsPath) Creates an instance of aAssetPackPrefabPathrecord 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.booleanbooleanpack()Returns the value of thepackrecord component.Returns the value of theprefabsPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pack
The field for thepackrecord component. -
prefabsPath
The field for theprefabsPathrecord component.
-
-
Constructor Details
-
AssetPackPrefabPath
Creates an instance of aAssetPackPrefabPathrecord class.- Parameters:
pack- the value for thepackrecord componentprefabsPath- the value for theprefabsPathrecord component
-
-
Method Details
-
isBasePack
public boolean isBasePack() -
isFromAssetPack
public boolean isFromAssetPack() -
getPackName
-
getDisplayName
-
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). -
pack
Returns the value of thepackrecord component.- Returns:
- the value of the
packrecord component
-
prefabsPath
Returns the value of theprefabsPathrecord component.- Returns:
- the value of the
prefabsPathrecord component
-