Record Class NPCConfigurationEntry
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.npc.configuration.NPCConfigurationEntry
public record NPCConfigurationEntry(@NonNull String targetGroup, double infoLineDistance, double knockbackDistance, double knockbackStrength, @NonNull NPCPoolOptions npcPoolOptions, @NonNull LabyModEmoteConfiguration emoteConfiguration, @NonNull InventoryConfiguration inventoryConfiguration)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull LabyModEmoteConfigurationThe field for theemoteConfigurationrecord component.private final doubleThe field for theinfoLineDistancerecord component.private final @NonNull InventoryConfigurationThe field for theinventoryConfigurationrecord component.private final doubleThe field for theknockbackDistancerecord component.private final doubleThe field for theknockbackStrengthrecord component.private final @NonNull NPCPoolOptionsThe field for thenpcPoolOptionsrecord component.The field for thetargetGrouprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNPCConfigurationEntry(@NonNull String targetGroup, double infoLineDistance, double knockbackDistance, double knockbackStrength, @NonNull NPCPoolOptions npcPoolOptions, @NonNull LabyModEmoteConfiguration emoteConfiguration, @NonNull InventoryConfiguration inventoryConfiguration) Creates an instance of aNPCConfigurationEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(@NonNull NPCConfigurationEntry entry) Returns the value of theemoteConfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinfoLineDistancerecord component.Returns the value of theinventoryConfigurationrecord component.doubleReturns the value of theknockbackDistancerecord component.doubleReturns the value of theknockbackStrengthrecord component.Returns the value of thenpcPoolOptionsrecord component.Returns the value of thetargetGrouprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
targetGroup
-
infoLineDistance
private final double infoLineDistanceThe field for theinfoLineDistancerecord component. -
knockbackDistance
private final double knockbackDistanceThe field for theknockbackDistancerecord component. -
knockbackStrength
private final double knockbackStrengthThe field for theknockbackStrengthrecord component. -
npcPoolOptions
The field for thenpcPoolOptionsrecord component. -
emoteConfiguration
The field for theemoteConfigurationrecord component. -
inventoryConfiguration
The field for theinventoryConfigurationrecord component.
-
-
Constructor Details
-
NPCConfigurationEntry
public NPCConfigurationEntry(@NonNull @NonNull String targetGroup, double infoLineDistance, double knockbackDistance, double knockbackStrength, @NonNull @NonNull NPCPoolOptions npcPoolOptions, @NonNull @NonNull LabyModEmoteConfiguration emoteConfiguration, @NonNull @NonNull InventoryConfiguration inventoryConfiguration) Creates an instance of aNPCConfigurationEntryrecord class.- Parameters:
targetGroup- the value for thetargetGrouprecord componentinfoLineDistance- the value for theinfoLineDistancerecord componentknockbackDistance- the value for theknockbackDistancerecord componentknockbackStrength- the value for theknockbackStrengthrecord componentnpcPoolOptions- the value for thenpcPoolOptionsrecord componentemoteConfiguration- the value for theemoteConfigurationrecord componentinventoryConfiguration- the value for theinventoryConfigurationrecord component
-
-
Method Details
-
builder
-
builder
@NonNull public static @NonNull NPCConfigurationEntry.Builder builder(@NonNull @NonNull NPCConfigurationEntry entry) -
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. -
targetGroup
-
infoLineDistance
public double infoLineDistance()Returns the value of theinfoLineDistancerecord component.- Returns:
- the value of the
infoLineDistancerecord component
-
knockbackDistance
public double knockbackDistance()Returns the value of theknockbackDistancerecord component.- Returns:
- the value of the
knockbackDistancerecord component
-
knockbackStrength
public double knockbackStrength()Returns the value of theknockbackStrengthrecord component.- Returns:
- the value of the
knockbackStrengthrecord component
-
npcPoolOptions
Returns the value of thenpcPoolOptionsrecord component.- Returns:
- the value of the
npcPoolOptionsrecord component
-
emoteConfiguration
Returns the value of theemoteConfigurationrecord component.- Returns:
- the value of the
emoteConfigurationrecord component
-
inventoryConfiguration
Returns the value of theinventoryConfigurationrecord component.- Returns:
- the value of the
inventoryConfigurationrecord component
-