Record Class NativeUiInput.Geometry
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.Geometry
- Enclosing class:
NativeUiInput
public static record NativeUiInput.Geometry(NativeUiInput.Bounds bounds, List<NativeUiInput.Ancestor> ancestors)
extends Record
Ancestors are supplied nearest first; native input tests only the nearest clipping ancestor.
-
Constructor Summary
ConstructorsConstructorDescriptionGeometry(NativeUiInput.Bounds bounds, List<NativeUiInput.Ancestor> ancestors) Creates an instance of aGeometryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theancestorsrecord component.bounds()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.booleaninsideAlternate(int flags, float x, float y) booleaninsideClip(float x, float y) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Geometry
Creates an instance of aGeometryrecord class.- Parameters:
bounds- the value for theboundsrecord componentancestors- the value for theancestorsrecord component
-
-
Method Details
-
insideClip
public boolean insideClip(float x, float y) -
insideAlternate
public boolean insideAlternate(int flags, float x, float y) -
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
Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-
ancestors
Returns the value of theancestorsrecord component.- Returns:
- the value of the
ancestorsrecord component
-