Record Class VoiceCuboid
java.lang.Object
java.lang.Record
fr.dreamin.dreamvoice.api.room.model.VoiceCuboid
-
Constructor Summary
ConstructorsConstructorDescriptionVoiceCuboid(@NotNull String world, double minX, double minY, double minZ, double maxX, double maxY, double maxZ) Creates an instance of aVoiceCuboidrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double x, double y, double z) booleancontains(@NotNull VoiceLocation location) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublemaxX()Returns the value of themaxXrecord component.doublemaxY()Returns the value of themaxYrecord component.doublemaxZ()Returns the value of themaxZrecord component.doubleminX()Returns the value of theminXrecord component.doubleminY()Returns the value of theminYrecord component.doubleminZ()Returns the value of theminZrecord component.static @NotNull VoiceCuboidfinal StringtoString()Returns a string representation of this record class.@NotNull Stringworld()Returns the value of theworldrecord component.
-
Constructor Details
-
VoiceCuboid
public VoiceCuboid(@NotNull @NotNull String world, double minX, double minY, double minZ, double maxX, double maxY, double maxZ) Creates an instance of aVoiceCuboidrecord class.- Parameters:
world- the value for theworldrecord componentminX- the value for theminXrecord componentminY- the value for theminYrecord componentminZ- the value for theminZrecord componentmaxX- the value for themaxXrecord componentmaxY- the value for themaxYrecord componentmaxZ- the value for themaxZrecord component
-
-
Method Details
-
of
@NotNull public static @NotNull VoiceCuboid of(@NotNull @NotNull String world, double x1, double y1, double z1, double x2, double y2, double z2) -
contains
-
contains
public boolean contains(double x, double y, double z) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
minX
public double minX()Returns the value of theminXrecord component.- Returns:
- the value of the
minXrecord component
-
minY
public double minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
minZ
public double minZ()Returns the value of theminZrecord component.- Returns:
- the value of the
minZrecord component
-
maxX
public double maxX()Returns the value of themaxXrecord component.- Returns:
- the value of the
maxXrecord component
-
maxY
public double maxY()Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-
maxZ
public double maxZ()Returns the value of themaxZrecord component.- Returns:
- the value of the
maxZrecord component
-