Record Class JavaBoundingBox
java.lang.Object
java.lang.Record
org.geysermc.geyser.api.block.custom.nonvanilla.JavaBoundingBox
public record JavaBoundingBox(@org.checkerframework.checker.nullness.qual.NonNull double middleX, @org.checkerframework.checker.nullness.qual.NonNull double middleY, @org.checkerframework.checker.nullness.qual.NonNull double middleZ, @org.checkerframework.checker.nullness.qual.NonNull double sizeX, @org.checkerframework.checker.nullness.qual.NonNull double sizeY, @org.checkerframework.checker.nullness.qual.NonNull double sizeZ)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJavaBoundingBox(@org.checkerframework.checker.nullness.qual.NonNull double middleX, @org.checkerframework.checker.nullness.qual.NonNull double middleY, @org.checkerframework.checker.nullness.qual.NonNull double middleZ, @org.checkerframework.checker.nullness.qual.NonNull double sizeX, @org.checkerframework.checker.nullness.qual.NonNull double sizeY, @org.checkerframework.checker.nullness.qual.NonNull double sizeZ)Creates an instance of aJavaBoundingBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@org.checkerframework.checker.nullness.qual.NonNull doublemiddleX()Returns the value of themiddleXrecord component.@org.checkerframework.checker.nullness.qual.NonNull doublemiddleY()Returns the value of themiddleYrecord component.@org.checkerframework.checker.nullness.qual.NonNull doublemiddleZ()Returns the value of themiddleZrecord component.@org.checkerframework.checker.nullness.qual.NonNull doublesizeX()Returns the value of thesizeXrecord component.@org.checkerframework.checker.nullness.qual.NonNull doublesizeY()Returns the value of thesizeYrecord component.@org.checkerframework.checker.nullness.qual.NonNull doublesizeZ()Returns the value of thesizeZrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
JavaBoundingBox
public JavaBoundingBox(@org.checkerframework.checker.nullness.qual.NonNull double middleX, @org.checkerframework.checker.nullness.qual.NonNull double middleY, @org.checkerframework.checker.nullness.qual.NonNull double middleZ, @org.checkerframework.checker.nullness.qual.NonNull double sizeX, @org.checkerframework.checker.nullness.qual.NonNull double sizeY, @org.checkerframework.checker.nullness.qual.NonNull double sizeZ)Creates an instance of aJavaBoundingBoxrecord class.- Parameters:
middleX- the value for themiddleXrecord componentmiddleY- the value for themiddleYrecord componentmiddleZ- the value for themiddleZrecord componentsizeX- the value for thesizeXrecord componentsizeY- the value for thesizeYrecord componentsizeZ- the value for thesizeZrecord 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 '=='. -
middleX
public @org.checkerframework.checker.nullness.qual.NonNull double middleX()Returns the value of themiddleXrecord component.- Returns:
- the value of the
middleXrecord component
-
middleY
public @org.checkerframework.checker.nullness.qual.NonNull double middleY()Returns the value of themiddleYrecord component.- Returns:
- the value of the
middleYrecord component
-
middleZ
public @org.checkerframework.checker.nullness.qual.NonNull double middleZ()Returns the value of themiddleZrecord component.- Returns:
- the value of the
middleZrecord component
-
sizeX
public @org.checkerframework.checker.nullness.qual.NonNull double sizeX()Returns the value of thesizeXrecord component.- Returns:
- the value of the
sizeXrecord component
-
sizeY
public @org.checkerframework.checker.nullness.qual.NonNull double sizeY()Returns the value of thesizeYrecord component.- Returns:
- the value of the
sizeYrecord component
-
sizeZ
public @org.checkerframework.checker.nullness.qual.NonNull double sizeZ()Returns the value of thesizeZrecord component.- Returns:
- the value of the
sizeZrecord component
-