Record Class GlobalVolume
java.lang.Object
java.lang.Record
johnsmith.enchantmentcore.api.enchantment.spellfield.math.GlobalVolume
- Record Components:
bounds- The absolute world-spaceAABBenclosing the volume.topology- The mathematicalTopologygoverning internal field strength distribution, ornullif uniform.volumeCenter- The absolute world-space epicenter of the volume evaluation logic.
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalVolume(net.minecraft.world.phys.AABB bounds, @Nullable Topology topology, net.minecraft.world.phys.Vec3 volumeCenter) Creates an instance of aGlobalVolumerecord 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
-
GlobalVolume
public GlobalVolume(net.minecraft.world.phys.AABB bounds, @Nullable @Nullable Topology topology, net.minecraft.world.phys.Vec3 volumeCenter) Creates an instance of aGlobalVolumerecord class.- Parameters:
bounds- the value for theboundsrecord componenttopology- the value for thetopologyrecord componentvolumeCenter- the value for thevolumeCenterrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
bounds
-
topology
-
volumeCenter
public net.minecraft.world.phys.Vec3 volumeCenter()Returns the value of thevolumeCenterrecord component.- Returns:
- the value of the
volumeCenterrecord component
-