Record Class CustomArrowItem.InaccuracySettings
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.item.projectile.CustomArrowItem.InaccuracySettings
- Enclosing class:
CustomArrowItem<T extends CustomArrowEntity>
public static record CustomArrowItem.InaccuracySettings(double xMultiplier, double yModifier, double zModifier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInaccuracySettings(double multiplier) InaccuracySettings(double xMultiplier, double yModifier, double zModifier) Creates an instance of aInaccuracySettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thexMultiplierrecord component.doubleReturns the value of theyModifierrecord component.doubleReturns the value of thezModifierrecord component.
-
Constructor Details
-
InaccuracySettings
public InaccuracySettings(double multiplier) -
InaccuracySettings
public InaccuracySettings(double xMultiplier, double yModifier, double zModifier) Creates an instance of aInaccuracySettingsrecord class.- Parameters:
xMultiplier- the value for thexMultiplierrecord componentyModifier- the value for theyModifierrecord componentzModifier- the value for thezModifierrecord 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. -
xMultiplier
public double xMultiplier()Returns the value of thexMultiplierrecord component.- Returns:
- the value of the
xMultiplierrecord component
-
yModifier
public double yModifier()Returns the value of theyModifierrecord component.- Returns:
- the value of the
yModifierrecord component
-
zModifier
public double zModifier()Returns the value of thezModifierrecord component.- Returns:
- the value of the
zModifierrecord component
-