Record Class EmoteAction.Play
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.EmoteAction.Play
- All Implemented Interfaces:
EmoteAction
- Enclosing interface:
EmoteAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface EmoteAction
EmoteAction.Available, EmoteAction.Play, EmoteAction.Policy, EmoteAction.Stop -
Field Summary
Fields inherited from interface EmoteAction
CHANNEL, MAX_EMOTES, MAX_TICKS, TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemote()Returns the value of theemoterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intkind()longticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Play
Creates an instance of aPlayrecord class.- Parameters:
emote- the value for theemoterecord componentticks- the value for theticksrecord component
-
-
Method Details
-
kind
public int kind()- Specified by:
kindin interfaceEmoteAction
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
emote
Returns the value of theemoterecord component.- Returns:
- the value of the
emoterecord component
-
ticks
public long ticks()Returns the value of theticksrecord component.- Returns:
- the value of the
ticksrecord component
-