Record Class EquipmentSet.SpearProperties
java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.EquipmentSet.SpearProperties
- Enclosing class:
EquipmentSet
public static record EquipmentSet.SpearProperties(float attackDuration, float damageMultiplier, float delay, float dismountTime, float dismountThreshold, float knockbackTime, float knockbackThreshold, float damageTime, float damageThreshold)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSpearProperties(float attackDuration, float damageMultiplier, float delay, float dismountTime, float dismountThreshold, float knockbackTime, float knockbackThreshold, float damageTime, float damageThreshold) Creates an instance of aSpearPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theattackDurationrecord component.floatReturns the value of thedamageMultiplierrecord component.floatReturns the value of thedamageThresholdrecord component.floatReturns the value of thedamageTimerecord component.floatdelay()Returns the value of thedelayrecord component.floatReturns the value of thedismountThresholdrecord component.floatReturns the value of thedismountTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of theknockbackThresholdrecord component.floatReturns the value of theknockbackTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpearProperties
public SpearProperties(float attackDuration, float damageMultiplier, float delay, float dismountTime, float dismountThreshold, float knockbackTime, float knockbackThreshold, float damageTime, float damageThreshold) Creates an instance of aSpearPropertiesrecord class.- Parameters:
attackDuration- the value for theattackDurationrecord componentdamageMultiplier- the value for thedamageMultiplierrecord componentdelay- the value for thedelayrecord componentdismountTime- the value for thedismountTimerecord componentdismountThreshold- the value for thedismountThresholdrecord componentknockbackTime- the value for theknockbackTimerecord componentknockbackThreshold- the value for theknockbackThresholdrecord componentdamageTime- the value for thedamageTimerecord componentdamageThreshold- the value for thedamageThresholdrecord component
-
-
Method Details
-
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. -
attackDuration
public float attackDuration()Returns the value of theattackDurationrecord component.- Returns:
- the value of the
attackDurationrecord component
-
damageMultiplier
public float damageMultiplier()Returns the value of thedamageMultiplierrecord component.- Returns:
- the value of the
damageMultiplierrecord component
-
delay
public float delay()Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
dismountTime
public float dismountTime()Returns the value of thedismountTimerecord component.- Returns:
- the value of the
dismountTimerecord component
-
dismountThreshold
public float dismountThreshold()Returns the value of thedismountThresholdrecord component.- Returns:
- the value of the
dismountThresholdrecord component
-
knockbackTime
public float knockbackTime()Returns the value of theknockbackTimerecord component.- Returns:
- the value of the
knockbackTimerecord component
-
knockbackThreshold
public float knockbackThreshold()Returns the value of theknockbackThresholdrecord component.- Returns:
- the value of the
knockbackThresholdrecord component
-
damageTime
public float damageTime()Returns the value of thedamageTimerecord component.- Returns:
- the value of the
damageTimerecord component
-
damageThreshold
public float damageThreshold()Returns the value of thedamageThresholdrecord component.- Returns:
- the value of the
damageThresholdrecord component
-