Record Class JavaKineticWeaponImpl.ConditionImpl
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.custom.impl.JavaKineticWeaponImpl.ConditionImpl
- All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition
- Enclosing class:
JavaKineticWeaponImpl
public static record JavaKineticWeaponImpl.ConditionImpl(@org.checkerframework.checker.index.qual.NonNegative int maxDurationTicks, float minSpeed, float minRelativeSpeed)
extends Record
implements org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConditionImpl(@org.checkerframework.checker.index.qual.NonNegative int maxDurationTicks, float minSpeed, float minRelativeSpeed) Creates an instance of aConditionImplrecord 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.@org.checkerframework.checker.index.qual.NonNegative intReturns the value of themaxDurationTicksrecord component.floatReturns the value of theminRelativeSpeedrecord component.floatminSpeed()Returns the value of theminSpeedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConditionImpl
public ConditionImpl(@org.checkerframework.checker.index.qual.NonNegative int maxDurationTicks, float minSpeed, float minRelativeSpeed) Creates an instance of aConditionImplrecord class.- Parameters:
maxDurationTicks- the value for themaxDurationTicksrecord componentminSpeed- the value for theminSpeedrecord componentminRelativeSpeed- the value for theminRelativeSpeedrecord component
-
-
Method Details
-
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 '=='. -
maxDurationTicks
public @org.checkerframework.checker.index.qual.NonNegative int maxDurationTicks()Returns the value of themaxDurationTicksrecord component.- Specified by:
maxDurationTicksin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition- Returns:
- the value of the
maxDurationTicksrecord component
-
minSpeed
public float minSpeed()Returns the value of theminSpeedrecord component.- Specified by:
minSpeedin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition- Returns:
- the value of the
minSpeedrecord component
-
minRelativeSpeed
public float minRelativeSpeed()Returns the value of theminRelativeSpeedrecord component.- Specified by:
minRelativeSpeedin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition- Returns:
- the value of the
minRelativeSpeedrecord component
-