Record Class NPCPoolOptions
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.npc.configuration.NPCPoolOptions
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theactionDistancerecord component.private final intThe field for thespawnDistancerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNPCPoolOptions(int spawnDistance, int actionDistance) Creates an instance of aNPCPoolOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactionDistancerecord component.static @NonNull NPCPoolOptions.Builderbuilder()static @NonNull NPCPoolOptions.Builderbuilder(@NonNull NPCPoolOptions options) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thespawnDistancerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
spawnDistance
private final int spawnDistanceThe field for thespawnDistancerecord component. -
actionDistance
private final int actionDistanceThe field for theactionDistancerecord component.
-
-
Constructor Details
-
NPCPoolOptions
public NPCPoolOptions(int spawnDistance, int actionDistance) Creates an instance of aNPCPoolOptionsrecord class.- Parameters:
spawnDistance- the value for thespawnDistancerecord componentactionDistance- the value for theactionDistancerecord component
-
-
Method Details
-
builder
-
builder
@NonNull public static @NonNull NPCPoolOptions.Builder builder(@NonNull @NonNull NPCPoolOptions options) -
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
spawnDistance
public int spawnDistance()Returns the value of thespawnDistancerecord component.- Returns:
- the value of the
spawnDistancerecord component
-
actionDistance
public int actionDistance()Returns the value of theactionDistancerecord component.- Returns:
- the value of the
actionDistancerecord component
-