Record Class JavaKineticWeaponImpl
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.custom.impl.JavaKineticWeaponImpl
- All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon
public record JavaKineticWeaponImpl(@org.checkerframework.checker.index.qual.NonNegative int delayTicks, @Nullable org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition dismountConditions)
extends Record
implements org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordNested classes/interfaces inherited from interface org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon
org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition -
Constructor Summary
ConstructorsConstructorDescriptionJavaKineticWeaponImpl(@org.checkerframework.checker.index.qual.NonNegative int delayTicks, @Nullable org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition dismountConditions) Creates an instance of aJavaKineticWeaponImplrecord class. -
Method Summary
Modifier and TypeMethodDescription@org.checkerframework.checker.index.qual.NonNegative intReturns the value of thedelayTicksrecord component.@Nullable org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.ConditionReturns the value of thedismountConditionsrecord component.final 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.
-
Constructor Details
-
JavaKineticWeaponImpl
public JavaKineticWeaponImpl(@org.checkerframework.checker.index.qual.NonNegative int delayTicks, @Nullable org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition dismountConditions) Creates an instance of aJavaKineticWeaponImplrecord class.- Parameters:
delayTicks- the value for thedelayTicksrecord componentdismountConditions- the value for thedismountConditionsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
delayTicks
public @org.checkerframework.checker.index.qual.NonNegative int delayTicks()Returns the value of thedelayTicksrecord component.- Specified by:
delayTicksin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon- Returns:
- the value of the
delayTicksrecord component
-
dismountConditions
public @Nullable org.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon.Condition dismountConditions()Returns the value of thedismountConditionsrecord component.- Specified by:
dismountConditionsin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaKineticWeapon- Returns:
- the value of the
dismountConditionsrecord component
-