Record Class Selector.RangeDispatch.Compass
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.RangeDispatch.Compass
- All Implemented Interfaces:
Selector.RangeDispatch.Property
- Enclosing class:
Selector.RangeDispatch
public static record Selector.RangeDispatch.Compass(Selector.RangeDispatch.Compass.Target target, boolean wobble)
extends Record
implements Selector.RangeDispatch.Property
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCompass(Selector.RangeDispatch.Compass.Target target, boolean wobble) Creates an instance of aCompassrecord 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.id()target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.booleanwobble()Returns the value of thewobblerecord component.
-
Constructor Details
-
Compass
Creates an instance of aCompassrecord class.- Parameters:
target- the value for thetargetrecord componentwobble- the value for thewobblerecord component
-
-
Method Details
-
id
- Specified by:
idin interfaceSelector.RangeDispatch.Property
-
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. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
wobble
public boolean wobble()Returns the value of thewobblerecord component.- Returns:
- the value of the
wobblerecord component
-