Record Class EmotePacket.Builder
java.lang.Object
java.lang.Record
io.github.kosmx.emotes.common.network.EmotePacket.Builder
- Enclosing class:
EmotePacket
EmotePacket builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()build(int sizeLimit, boolean strict) configureEmoteTick(float tick) configureTarget(@Nullable UUID target) configureToSaveEmote(com.zigythebird.playeranimcore.animation.Animation emoteData) configureToSendStop(UUID emoteID) configureToSendStop(UUID emoteID, @Nullable UUID player) configureToStreamEmote(com.zigythebird.playeranimcore.animation.Animation emoteData) configureToStreamEmote(com.zigythebird.playeranimcore.animation.Animation emoteData, @Nullable UUID player) copy()data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidsetSizeLimit(int sizeLimit, boolean strict) setVersion(Map<Byte, Byte> versions) To send an emotestrictSizeLimit(boolean strict) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Builder
public Builder() -
Builder
Creates an instance of aBuilderrecord class.- Parameters:
data- the value for thedatarecord component
-
-
Method Details
-
setVersion
To send an emote -
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
copy
-
build
-
build
-
setSizeLimit
-
configureToStreamEmote
public EmotePacket.Builder configureToStreamEmote(com.zigythebird.playeranimcore.animation.Animation emoteData, @Nullable @Nullable UUID player) -
configureToSaveEmote
public EmotePacket.Builder configureToSaveEmote(com.zigythebird.playeranimcore.animation.Animation emoteData) -
configureEmoteTick
-
configureTarget
-
configureToStreamEmote
public EmotePacket.Builder configureToStreamEmote(com.zigythebird.playeranimcore.animation.Animation emoteData) -
configureToSendStop
-
configureToSendStop
-
configureToConfigExchange
-
removePlayerID
public void removePlayerID() -
strictSizeLimit
-
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 withObjects::equals(Object,Object).
-