Package dev.gothickit.zenkit.mds
Record Class CachedEventParticleEffect
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedEventParticleEffect
- All Implemented Interfaces:
CacheableObject<CachedEventParticleEffect>,EventParticleEffect
public record CachedEventParticleEffect(int frame, int index, @NotNull String name, @NotNull String position, boolean isAttached)
extends Record
implements EventParticleEffect
-
Constructor Summary
ConstructorsConstructorDescriptionCachedEventParticleEffect(int frame, int index, @NotNull String name, @NotNull String position, boolean isAttached) Creates an instance of aCachedEventParticleEffectrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CachedEventParticleEffectcache()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.booleanReturns the value of theisAttachedrecord component.booleanisCached()@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Stringposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedEventParticleEffect
public CachedEventParticleEffect(int frame, int index, @NotNull @NotNull String name, @NotNull @NotNull String position, boolean isAttached) Creates an instance of aCachedEventParticleEffectrecord class.- Parameters:
frame- the value for theframerecord componentindex- the value for theindexrecord componentname- the value for thenamerecord componentposition- the value for thepositionrecord componentisAttached- the value for theisAttachedrecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedEventParticleEffect>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedEventParticleEffect>
-
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 '=='. -
frame
public int frame()Returns the value of theframerecord component.- Specified by:
framein interfaceEventParticleEffect- Returns:
- the value of the
framerecord component
-
index
public int index()Returns the value of theindexrecord component.- Specified by:
indexin interfaceEventParticleEffect- Returns:
- the value of the
indexrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceEventParticleEffect- Returns:
- the value of the
namerecord component
-
position
Returns the value of thepositionrecord component.- Specified by:
positionin interfaceEventParticleEffect- Returns:
- the value of the
positionrecord component
-
isAttached
public boolean isAttached()Returns the value of theisAttachedrecord component.- Specified by:
isAttachedin interfaceEventParticleEffect- Returns:
- the value of the
isAttachedrecord component
-