Contents
Record Class NotNearAnyInHashGrid
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.portals.utils.posqueries.predicates.NotNearAnyInHashGrid
- Record Components:
hashGrid- The spatial hash grid to check against.radius- The radius within which to check for points.
- All Implemented Interfaces:
PositionPredicate
public record NotNearAnyInHashGrid(SpatialHashGrid<?> hashGrid, double radius)
extends Record
implements PositionPredicate
A position predicate that checks if there are no points within a certain radius in a spatial hash grid.
-
Constructor Summary
ConstructorsConstructorDescriptionNotNearAnyInHashGrid(SpatialHashGrid<?> hashGrid, double radius) Creates an instance of aNotNearAnyInHashGridrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hashGrid()Returns the value of thehashGridrecord component.doubleradius()Returns the value of theradiusrecord component.booleanDetermines if the condition is met at the specified point in the given world.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
test
Description copied from interface:PositionPredicateDetermines if the condition is met at the specified point in the given world.- Specified by:
testin interfacePositionPredicate- Parameters:
world- The world to test the condition in.point- The point to test the condition at.- Returns:
trueif the condition is met,falseotherwise.
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hashGrid
-
radius
-