Package kr.toxicity.model.api
Record Class BetterModelPlugin.ReloadResult.Success
java.lang.Object
java.lang.Record
kr.toxicity.model.api.BetterModelPlugin.ReloadResult.Success
- Record Components:
assetsTime- assets reloading timepackData- pack data
- All Implemented Interfaces:
BetterModelPlugin.ReloadResult
- Enclosing interface:
BetterModelPlugin.ReloadResult
public static record BetterModelPlugin.ReloadResult.Success(long assetsTime, @NotNull PackData packData)
extends Record
implements BetterModelPlugin.ReloadResult
Reload success.
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.BetterModelPlugin.ReloadResult
BetterModelPlugin.ReloadResult.Failure, BetterModelPlugin.ReloadResult.OnReload, BetterModelPlugin.ReloadResult.Success -
Field Summary
Fields inherited from interface kr.toxicity.model.api.BetterModelPlugin.ReloadResult
ON_RELOAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theassetsTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull PackDatapackData()Returns the value of thepackDatarecord component.longGets packing timefinal StringtoString()Returns a string representation of this record class.longGets total reload time
-
Constructor Details
-
Success
Creates an instance of aSuccessrecord class.- Parameters:
assetsTime- the value for theassetsTimerecord componentpackData- the value for thepackDatarecord component
-
-
Method Details
-
packingTime
public long packingTime()Gets packing time- Returns:
- packing time
-
totalTime
public long totalTime()Gets total reload time- Returns:
- total reload time
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
assetsTime
public long assetsTime()Returns the value of theassetsTimerecord component.- Returns:
- the value of the
assetsTimerecord component
-
packData
Returns the value of thepackDatarecord component.- Returns:
- the value of the
packDatarecord component
-