Package dev.gothickit.zenkit.mds
Record Class CachedEventParticleEffectStop
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedEventParticleEffectStop
- All Implemented Interfaces:
CacheableObject<CachedEventParticleEffectStop>,EventParticleEffectStop
public record CachedEventParticleEffectStop(int frame, int index)
extends Record
implements EventParticleEffectStop
-
Constructor Summary
ConstructorsConstructorDescriptionCachedEventParticleEffectStop(int frame, int index) Creates an instance of aCachedEventParticleEffectStoprecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CachedEventParticleEffectStopcache()final booleanIndicates whether some other object is "equal to" this one.intframe()Returns the value of theframerecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.booleanisCached()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedEventParticleEffectStop
public CachedEventParticleEffectStop(int frame, int index) Creates an instance of aCachedEventParticleEffectStoprecord class.- Parameters:
frame- the value for theframerecord componentindex- the value for theindexrecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedEventParticleEffectStop>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedEventParticleEffectStop>
-
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 with '=='. -
frame
public int frame()Returns the value of theframerecord component.- Specified by:
framein interfaceEventParticleEffectStop- Returns:
- the value of the
framerecord component
-
index
public int index()Returns the value of theindexrecord component.- Specified by:
indexin interfaceEventParticleEffectStop- Returns:
- the value of the
indexrecord component
-