Package kr.toxicity.model.api.tracker
Record Class TrackerModifier
java.lang.Object
java.lang.Record
kr.toxicity.model.api.tracker.TrackerModifier
- Record Components:
sightTrace- use sight-tracedamageAnimation- enables damage animationdamageTint- enables damage tintviewRange- view rangeshadow- create shadow
public record TrackerModifier(boolean sightTrace, boolean damageAnimation, boolean damageTint, float viewRange, boolean shadow)
extends Record
Tracker's modifier
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrackerModifier(boolean sightTrace, boolean damageAnimation, boolean damageTint, float viewRange, boolean shadow) Creates an instance of aTrackerModifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TrackerModifier.Builderbuilder()Creates default builderbooleanReturns 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.booleanshadow()Returns the value of theshadowrecord component.booleanReturns the value of thesightTracerecord component.@NotNull TrackerModifier.BuilderCreates builder from original modifier.final StringtoString()Returns a string representation of this record class.floatReturns the value of theviewRangerecord component.
-
Field Details
-
DEFAULT
Default modifier
-
-
Constructor Details
-
TrackerModifier
public TrackerModifier(boolean sightTrace, boolean damageAnimation, boolean damageTint, float viewRange, boolean shadow) Creates an instance of aTrackerModifierrecord class.- Parameters:
sightTrace- the value for thesightTracerecord componentdamageAnimation- the value for thedamageAnimationrecord componentdamageTint- the value for thedamageTintrecord componentviewRange- the value for theviewRangerecord componentshadow- the value for theshadowrecord component
-
-
Method Details
-
builder
Creates default builder- Returns:
- builder
-
toBuilder
Creates builder from original modifier.- Returns:
- builder
-
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
-
viewRange
@SerializedName("view-range") public float viewRange()Returns the value of theviewRangerecord component.- Returns:
- the value of the
viewRangerecord component
-
shadow
public boolean shadow()Returns the value of theshadowrecord component.- Returns:
- the value of the
shadowrecord component
-