Package org.geysermc.geyser.util
Record Class AssetUtils.ClientJarTask
java.lang.Object
java.lang.Record
org.geysermc.geyser.util.AssetUtils.ClientJarTask
- Enclosing class:
- AssetUtils
public static record AssetUtils.ClientJarTask(String asset, AssetUtils.InputStreamConsumer ifNewDownload, Runnable whenDone)
extends Record
A process that requires we download the client jar.
Designed to accommodate Geyser updates that require more assets from the jar.
-
Constructor Summary
ConstructorsConstructorDescriptionClientJarTask(String asset, AssetUtils.InputStreamConsumer ifNewDownload, Runnable whenDone)Creates an instance of aClientJarTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasset()Returns the value of theassetrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of theifNewDownloadrecord component.toString()Returns a string representation of this record class.whenDone()Returns the value of thewhenDonerecord component.
-
Constructor Details
-
ClientJarTask
public ClientJarTask(String asset, AssetUtils.InputStreamConsumer ifNewDownload, Runnable whenDone)Creates an instance of aClientJarTaskrecord class.- Parameters:
asset- the value for theassetrecord componentifNewDownload- the value for theifNewDownloadrecord componentwhenDone- the value for thewhenDonerecord 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). -
asset
Returns the value of theassetrecord component.- Returns:
- the value of the
assetrecord component
-
ifNewDownload
Returns the value of theifNewDownloadrecord component.- Returns:
- the value of the
ifNewDownloadrecord component
-
whenDone
Returns the value of thewhenDonerecord component.- Returns:
- the value of the
whenDonerecord component
-