Record Class SearchParameters
java.lang.Object
java.lang.Record
io.hymods.lib.data.SearchParameters
-
Constructor Summary
ConstructorsConstructorDescriptionSearchParameters(com.hypixel.hytale.math.vector.Vector3d center, double radius) Default constructor including all entity types and no filter.SearchParameters(com.hypixel.hytale.math.vector.Vector3d center, double radius, boolean includePlayer, boolean includeNPC, boolean includeLiving, String filterType) Full constructor allowing customization of entity types and filter. -
Method Summary
Modifier and TypeMethodDescriptioncom.hypixel.hytale.math.vector.Vector3dcenter()Returns the value of thecenterrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefilterTyperecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeLivingrecord component.booleanReturns the value of theincludeNPCrecord component.booleanReturns the value of theincludePlayerrecord component.doubleradius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchParameters
public SearchParameters(com.hypixel.hytale.math.vector.Vector3d center, double radius) Default constructor including all entity types and no filter.- Parameters:
center- the center point of the searchradius- the radius of the search
-
SearchParameters
public SearchParameters(com.hypixel.hytale.math.vector.Vector3d center, double radius, boolean includePlayer, boolean includeNPC, boolean includeLiving, String filterType) Full constructor allowing customization of entity types and filter.- Parameters:
center- the center point of the searchradius- the radius of the searchincludePlayer- whether to include player entitiesincludeNPC- whether to include NPC entitiesincludeLiving- whether to include living entitiesfilterType- the type of filter to apply (can be null)
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
center
public com.hypixel.hytale.math.vector.Vector3d center()Returns the value of thecenterrecord component.- Returns:
- the value of the
centerrecord component
-
radius
public double radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
includePlayer
public boolean includePlayer()Returns the value of theincludePlayerrecord component.- Returns:
- the value of the
includePlayerrecord component
-
includeNPC
public boolean includeNPC()Returns the value of theincludeNPCrecord component.- Returns:
- the value of the
includeNPCrecord component
-
includeLiving
public boolean includeLiving()Returns the value of theincludeLivingrecord component.- Returns:
- the value of the
includeLivingrecord component
-
filterType
Returns the value of thefilterTyperecord component.- Returns:
- the value of the
filterTyperecord component
-