Record Class ShellElement
java.lang.Object
java.lang.Record
foundry.veil.api.flare.data.model.ShellElement
public record ShellElement(org.joml.Vector3fc from, org.joml.Vector3fc to, @Nullable ShellElementRotation rotation, Map<net.minecraft.core.Direction,ShellElementFace> faces)
extends Record
- Since:
- 2.5.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShellElement(org.joml.Vector3fc from, org.joml.Vector3fc to, @Nullable ShellElementRotation rotation, Map<net.minecraft.core.Direction, ShellElementFace> faces) Creates an instance of aShellElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Map<net.minecraft.core.Direction, ShellElementFace> faces()Returns the value of thefacesrecord component.org.joml.Vector3fcfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.@Nullable ShellElementRotationrotation()Returns the value of therotationrecord component.org.joml.Vector3fcto()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
ShellElement
public ShellElement(org.joml.Vector3fc from, org.joml.Vector3fc to, @Nullable @Nullable ShellElementRotation rotation, Map<net.minecraft.core.Direction, ShellElementFace> faces) Creates an instance of aShellElementrecord class.- Parameters:
from- the value for thefromrecord componentto- the value for thetorecord componentrotation- the value for therotationrecord componentfaces- the value for thefacesrecord 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 withObjects::equals(Object,Object). -
from
public org.joml.Vector3fc from()Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
public org.joml.Vector3fc to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
faces
Returns the value of thefacesrecord component.- Returns:
- the value of the
facesrecord component
-