Record Class LabyModEmoteConfiguration
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.npc.configuration.LabyModEmoteConfiguration
public record LabyModEmoteConfiguration(int[] emoteIds, int[] onJoinEmoteIds, int[] onKnockbackEmoteIds, long minEmoteDelayTicks, long maxEmoteDelayTicks, boolean syncEmotesBetweenNPCs)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]The field for theemoteIdsrecord component.private final longThe field for themaxEmoteDelayTicksrecord component.private final longThe field for theminEmoteDelayTicksrecord component.private final int[]The field for theonJoinEmoteIdsrecord component.private final int[]The field for theonKnockbackEmoteIdsrecord component.private final booleanThe field for thesyncEmotesBetweenNPCsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLabyModEmoteConfiguration(int[] emoteIds, int[] onJoinEmoteIds, int[] onKnockbackEmoteIds, long minEmoteDelayTicks, long maxEmoteDelayTicks, boolean syncEmotesBetweenNPCs) Creates an instance of aLabyModEmoteConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(@NonNull LabyModEmoteConfiguration configuration) int[]emoteIds()Returns the value of theemoteIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxEmoteDelayTicksrecord component.longReturns the value of theminEmoteDelayTicksrecord component.int[]Returns the value of theonJoinEmoteIdsrecord component.int[]Returns the value of theonKnockbackEmoteIdsrecord component.booleanReturns the value of thesyncEmotesBetweenNPCsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
emoteIds
private final int[] emoteIdsThe field for theemoteIdsrecord component. -
onJoinEmoteIds
private final int[] onJoinEmoteIdsThe field for theonJoinEmoteIdsrecord component. -
onKnockbackEmoteIds
private final int[] onKnockbackEmoteIdsThe field for theonKnockbackEmoteIdsrecord component. -
minEmoteDelayTicks
private final long minEmoteDelayTicksThe field for theminEmoteDelayTicksrecord component. -
maxEmoteDelayTicks
private final long maxEmoteDelayTicksThe field for themaxEmoteDelayTicksrecord component. -
syncEmotesBetweenNPCs
private final boolean syncEmotesBetweenNPCsThe field for thesyncEmotesBetweenNPCsrecord component.
-
-
Constructor Details
-
LabyModEmoteConfiguration
public LabyModEmoteConfiguration(int[] emoteIds, int[] onJoinEmoteIds, int[] onKnockbackEmoteIds, long minEmoteDelayTicks, long maxEmoteDelayTicks, boolean syncEmotesBetweenNPCs) Creates an instance of aLabyModEmoteConfigurationrecord class.- Parameters:
emoteIds- the value for theemoteIdsrecord componentonJoinEmoteIds- the value for theonJoinEmoteIdsrecord componentonKnockbackEmoteIds- the value for theonKnockbackEmoteIdsrecord componentminEmoteDelayTicks- the value for theminEmoteDelayTicksrecord componentmaxEmoteDelayTicks- the value for themaxEmoteDelayTicksrecord componentsyncEmotesBetweenNPCs- the value for thesyncEmotesBetweenNPCsrecord component
-
-
Method Details
-
builder
-
builder
@NonNull public static @NonNull LabyModEmoteConfiguration.Builder builder(@NonNull @NonNull LabyModEmoteConfiguration configuration) -
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. -
emoteIds
public int[] emoteIds()Returns the value of theemoteIdsrecord component.- Returns:
- the value of the
emoteIdsrecord component
-
onJoinEmoteIds
public int[] onJoinEmoteIds()Returns the value of theonJoinEmoteIdsrecord component.- Returns:
- the value of the
onJoinEmoteIdsrecord component
-
onKnockbackEmoteIds
public int[] onKnockbackEmoteIds()Returns the value of theonKnockbackEmoteIdsrecord component.- Returns:
- the value of the
onKnockbackEmoteIdsrecord component
-
minEmoteDelayTicks
public long minEmoteDelayTicks()Returns the value of theminEmoteDelayTicksrecord component.- Returns:
- the value of the
minEmoteDelayTicksrecord component
-
maxEmoteDelayTicks
public long maxEmoteDelayTicks()Returns the value of themaxEmoteDelayTicksrecord component.- Returns:
- the value of the
maxEmoteDelayTicksrecord component
-
syncEmotesBetweenNPCs
public boolean syncEmotesBetweenNPCs()Returns the value of thesyncEmotesBetweenNPCsrecord component.- Returns:
- the value of the
syncEmotesBetweenNPCsrecord component
-