Record Class GlobalVolume

java.lang.Object
java.lang.Record
johnsmith.enchantmentcore.api.enchantment.spellfield.math.GlobalVolume
Record Components:
bounds - The absolute world-space AABB enclosing the volume.
topology - The mathematical Topology governing internal field strength distribution, or null if uniform.
volumeCenter - The absolute world-space epicenter of the volume evaluation logic.

public record GlobalVolume(net.minecraft.world.phys.AABB bounds, @Nullable Topology topology, net.minecraft.world.phys.Vec3 volumeCenter) extends Record
Encapsulates the evaluated spatial geometry and topological rules for a spell field volume expressed in absolute world coordinates.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GlobalVolume(net.minecraft.world.phys.AABB bounds, @Nullable Topology topology, net.minecraft.world.phys.Vec3 volumeCenter)
    Creates an instance of a GlobalVolume record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.phys.AABB
    Returns the value of the bounds record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @Nullable Topology
    Returns the value of the topology record component.
    final String
    Returns a string representation of this record class.
    net.minecraft.world.phys.Vec3
    Returns the value of the volumeCenter record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GlobalVolume

      public GlobalVolume(net.minecraft.world.phys.AABB bounds, @Nullable @Nullable Topology topology, net.minecraft.world.phys.Vec3 volumeCenter)
      Creates an instance of a GlobalVolume record class.
      Parameters:
      bounds - the value for the bounds record component
      topology - the value for the topology record component
      volumeCenter - the value for the volumeCenter record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • bounds

      public net.minecraft.world.phys.AABB bounds()
      Returns the value of the bounds record component.
      Returns:
      the value of the bounds record component
    • topology

      @Nullable public @Nullable Topology topology()
      Returns the value of the topology record component.
      Returns:
      the value of the topology record component
    • volumeCenter

      public net.minecraft.world.phys.Vec3 volumeCenter()
      Returns the value of the volumeCenter record component.
      Returns:
      the value of the volumeCenter record component