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:
firstLoad- first loadassetsTime- assets reloading timepackResult- pack result
- All Implemented Interfaces:
BetterModelPlugin.ReloadResult
- Enclosing interface:
BetterModelPlugin.ReloadResult
public static record BetterModelPlugin.ReloadResult.Success(boolean firstLoad, long assetsTime, @NotNull PackResult packResult)
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 -
Constructor Summary
ConstructorsConstructorDescriptionSuccess(boolean firstLoad, long assetsTime, @NotNull PackResult packResult) Creates an instance of aSuccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theassetsTimerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefirstLoadrecord component.final inthashCode()Returns a hash code value for this object.longlength()Gets pack lengthlongGets packing time@NotNull PackResultReturns the value of thepackResultrecord component.final StringtoString()Returns a string representation of this record class.longGets total reload time
-
Constructor Details
-
Success
Creates an instance of aSuccessrecord class.- Parameters:
firstLoad- the value for thefirstLoadrecord componentassetsTime- the value for theassetsTimerecord componentpackResult- the value for thepackResultrecord 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
-
length
public long length()Gets pack length- Returns:
- length
-
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 '=='. -
firstLoad
public boolean firstLoad()Returns the value of thefirstLoadrecord component.- Returns:
- the value of the
firstLoadrecord component
-
assetsTime
public long assetsTime()Returns the value of theassetsTimerecord component.- Returns:
- the value of the
assetsTimerecord component
-
packResult
Returns the value of thepackResultrecord component.- Returns:
- the value of the
packResultrecord component
-