Record Class LocalVolume
java.lang.Object
java.lang.Record
johnsmith.enchantmentcore.api.enchantment.spellfield.math.LocalVolume
- Record Components:
bounds- The relativeAABBenclosing the volume offset from the anchor entity's position.topology- The mathematicalTopologygoverning internal field strength distribution, ornullif uniform.volumeCenter- The relative epicenter vector offset from the anchor entity's position.
public record LocalVolume(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 relative to an anchor entity's local origin for frame-interpolated client debug rendering.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalVolume(net.minecraft.world.phys.AABB bounds, @Nullable Topology topology, net.minecraft.world.phys.Vec3 volumeCenter) Creates an instance of aLocalVolumerecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.AABBbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Topologytopology()Returns the value of thetopologyrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.world.phys.Vec3Returns the value of thevolumeCenterrecord component.
-
Constructor Details
-
LocalVolume
public LocalVolume(net.minecraft.world.phys.AABB bounds, @Nullable @Nullable Topology topology, net.minecraft.world.phys.Vec3 volumeCenter) Creates an instance of aLocalVolumerecord class.- Parameters:
bounds- the value for theboundsrecord componenttopology- the value for thetopologyrecord componentvolumeCenter- the value for thevolumeCenterrecord 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). -
bounds
public net.minecraft.world.phys.AABB bounds()Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-
topology
Returns the value of thetopologyrecord component.- Returns:
- the value of the
topologyrecord component
-
volumeCenter
public net.minecraft.world.phys.Vec3 volumeCenter()Returns the value of thevolumeCenterrecord component.- Returns:
- the value of the
volumeCenterrecord component
-