Record Class JavaAttackRangeImpl
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.custom.impl.JavaAttackRangeImpl
- All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.v2.component.java.JavaAttackRange
public record JavaAttackRangeImpl(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minCreativeReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxCreativeReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=1L) float hitboxMargin)
extends Record
implements org.geysermc.geyser.api.item.custom.v2.component.java.JavaAttackRange
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJavaAttackRangeImpl(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minCreativeReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxCreativeReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=1L) float hitboxMargin) Creates an instance of aJavaAttackRangeImplrecord 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.common.value.qual.IntRange(from=0L, to=1L) floatReturns the value of thehitboxMarginrecord component.@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) floatReturns the value of themaxCreativeReachrecord component.@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) floatmaxReach()Returns the value of themaxReachrecord component.@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) floatReturns the value of theminCreativeReachrecord component.@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) floatminReach()Returns the value of theminReachrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaAttackRangeImpl
public JavaAttackRangeImpl(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minCreativeReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxCreativeReach, @org.checkerframework.common.value.qual.IntRange(from=0L, to=1L) float hitboxMargin) Creates an instance of aJavaAttackRangeImplrecord class.- Parameters:
minReach- the value for theminReachrecord componentmaxReach- the value for themaxReachrecord componentminCreativeReach- the value for theminCreativeReachrecord componentmaxCreativeReach- the value for themaxCreativeReachrecord componenthitboxMargin- the value for thehitboxMarginrecord 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 '=='. -
minReach
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minReach()Returns the value of theminReachrecord component.- Specified by:
minReachin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaAttackRange- Returns:
- the value of the
minReachrecord component
-
maxReach
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxReach()Returns the value of themaxReachrecord component.- Specified by:
maxReachin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaAttackRange- Returns:
- the value of the
maxReachrecord component
-
minCreativeReach
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minCreativeReach()Returns the value of theminCreativeReachrecord component.- Specified by:
minCreativeReachin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaAttackRange- Returns:
- the value of the
minCreativeReachrecord component
-
maxCreativeReach
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxCreativeReach()Returns the value of themaxCreativeReachrecord component.- Specified by:
maxCreativeReachin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaAttackRange- Returns:
- the value of the
maxCreativeReachrecord component
-
hitboxMargin
public @org.checkerframework.common.value.qual.IntRange(from=0L, to=1L) float hitboxMargin()Returns the value of thehitboxMarginrecord component.- Specified by:
hitboxMarginin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaAttackRange- Returns:
- the value of the
hitboxMarginrecord component
-