Record Class FoliosBook.Handling
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.FoliosBook.Handling
- Enclosing class:
FoliosBook
What a reader can do while holding a handheld book open:
"handheld" in book.json.
"handheld": {
"look_around": true, // holding the right mouse button turns the reader's head, the book with it
"walk": true // the movement keys walk, jump, sneak and sprint (the arrow keys still turn the leaves)
}
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHandling(boolean lookAround, boolean walk) Creates an instance of aHandlingrecord 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.booleanReturns the value of thelookAroundrecord component.final StringtoString()Returns a string representation of this record class.booleanwalk()Returns the value of thewalkrecord component.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Handling
public Handling(boolean lookAround, boolean walk) Creates an instance of aHandlingrecord class.- Parameters:
lookAround- the value for thelookAroundrecord componentwalk- the value for thewalkrecord component
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
lookAround
public boolean lookAround()Returns the value of thelookAroundrecord component.- Returns:
- the value of the
lookAroundrecord component
-
walk
public boolean walk()Returns the value of thewalkrecord component.- Returns:
- the value of the
walkrecord component
-