Record Class WorldBounds
java.lang.Object
java.lang.Record
com.render.api.world.WorldBounds
public record WorldBounds(net.minecraft.world.phys.Vec3 min, net.minecraft.world.phys.Vec3 max)
extends Record
Immutable local or world-space bounds used for culling and picking.
-
Constructor Summary
ConstructorsConstructorDescriptionWorldBounds(net.minecraft.world.phys.Vec3 min, net.minecraft.world.phys.Vec3 max) Creates an instance of aWorldBoundsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.AABBaabb()static WorldBoundsaround(net.minecraft.world.phys.Vec3 center, double radius) net.minecraft.world.phys.Vec3center()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inflate(double amount) net.minecraft.world.phys.Vec3max()Returns the value of themaxrecord component.net.minecraft.world.phys.Vec3min()Returns the value of theminrecord component.move(net.minecraft.world.phys.Vec3 amount) static WorldBoundsof(net.minecraft.world.phys.AABB box) final StringtoString()Returns a string representation of this record class.transform(WorldTransform transform) union(WorldBounds other)
-
Constructor Details
-
WorldBounds
public WorldBounds(net.minecraft.world.phys.Vec3 min, net.minecraft.world.phys.Vec3 max) Creates an instance of aWorldBoundsrecord class.- Parameters:
min- the value for theminrecord componentmax- the value for themaxrecord component
-
-
Method Details
-
of
-
around
-
aabb
public net.minecraft.world.phys.AABB aabb() -
center
public net.minecraft.world.phys.Vec3 center() -
inflate
-
move
-
union
-
transform
-
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). -
min
public net.minecraft.world.phys.Vec3 min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public net.minecraft.world.phys.Vec3 max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-