Package dev.gothickit.zenkit.mds
Record Class CachedEventTag
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedEventTag
- All Implemented Interfaces:
CacheableObject<CachedEventTag>,EventTag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull CachedEventTagcache()final booleanIndicates whether some other object is "equal to" this one.@NotNull FightModeReturns the value of thefightModerecord component.intframe()Returns the value of theframerecord component.int @NotNull []frames()Returns the value of theframesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAttachedrecord component.booleanisCached()@NotNull Stringitem()Returns the value of theitemrecord component.@Nullable Stringslot(long i) slots()Returns the value of theslotsrecord component.final StringtoString()Returns a string representation of this record class.@NotNull EventTypetype()Returns the value of thetyperecord component.
-
Constructor Details
-
CachedEventTag
public CachedEventTag(int frame, @NotNull @NotNull EventType type, @NotNull @NotNull String item, @NotNull @NotNull List<String> slots, int @NotNull [] frames, @NotNull @NotNull FightMode fightMode, boolean isAttached) Creates an instance of aCachedEventTagrecord class.- Parameters:
frame- the value for theframerecord componenttype- the value for thetyperecord componentitem- the value for theitemrecord componentslots- the value for theslotsrecord componentframes- the value for theframesrecord componentfightMode- the value for thefightModerecord componentisAttached- the value for theisAttachedrecord component
-
-
Method Details
-
slot
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedEventTag>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedEventTag>
-
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. -
type
Returns the value of thetyperecord component. -
item
Returns the value of theitemrecord component. -
slots
Returns the value of theslotsrecord component. -
frames
public int @NotNull [] frames()Returns the value of theframesrecord component. -
fightMode
Returns the value of thefightModerecord component. -
isAttached
public boolean isAttached()Returns the value of theisAttachedrecord component.- Specified by:
isAttachedin interfaceEventTag- Returns:
- the value of the
isAttachedrecord component
-