Package kr.toxicity.model.api.tracker
Record Class TrackerModifier
java.lang.Object
java.lang.Record
kr.toxicity.model.api.tracker.TrackerModifier
- Record Components:
sightTrace- whether to perform sight tracing for visibilitydamageAnimation- whether to play automatic damage animationsdamageTint- whether to apply a red tint when damaged
public record TrackerModifier(boolean sightTrace, boolean damageAnimation, boolean damageTint)
extends Record
Configuration options for a
Tracker.
This record controls various behaviors such as visibility checks (sight trace), automatic damage animations, and damage tinting effects.
- Since:
- 1.15.2
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TrackerModifierThe default modifier configuration (all enabled). -
Constructor Summary
ConstructorsConstructorDescriptionTrackerModifier(boolean sightTrace, boolean damageAnimation, boolean damageTint) Creates an instance of aTrackerModifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TrackerModifier.Builderbuilder()Creates a new builder initialized with default values.booleanReturns the value of thedamageAnimationrecord component.booleanReturns the value of thedamageTintrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesightTracerecord component.@NotNull TrackerModifier.BuilderCreates a new builder initialized with this modifier's values.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default modifier configuration (all enabled).- Since:
- 1.15.2
-
-
Constructor Details
-
TrackerModifier
public TrackerModifier(boolean sightTrace, boolean damageAnimation, boolean damageTint) Creates an instance of aTrackerModifierrecord class.- Parameters:
sightTrace- the value for thesightTracerecord componentdamageAnimation- the value for thedamageAnimationrecord componentdamageTint- the value for thedamageTintrecord component
-
-
Method Details
-
builder
Creates a new builder initialized with default values.- Returns:
- a new builder
- Since:
- 1.15.2
-
toBuilder
Creates a new builder initialized with this modifier's values.- Returns:
- a new builder
- Since:
- 1.15.2
-
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 with '=='. -
sightTrace
@SerializedName("sight-trace") public boolean sightTrace()Returns the value of thesightTracerecord component.- Returns:
- the value of the
sightTracerecord component
-
damageAnimation
@SerializedName("damage-animation") public boolean damageAnimation()Returns the value of thedamageAnimationrecord component.- Returns:
- the value of the
damageAnimationrecord component
-
damageTint
@SerializedName("damage-tint") public boolean damageTint()Returns the value of thedamageTintrecord component.- Returns:
- the value of the
damageTintrecord component
-