Package net.minecraft.client.gui.screen
Class EditBookScreen.BookPage
java.lang.Object
net.minecraft.client.gui.screen.EditBookScreen.BookPage
- Enclosing class:
- EditBookScreen
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EditBookScreen.Point
private final boolean
private static final EditBookScreen.BookPage
private final String
private final EditBookScreen.BookLine[]
private final int[]
private final Rectangle2d[]
-
Constructor Summary
ConstructorDescriptionBookPage
(String p_i232288_1_, EditBookScreen.Point p_i232288_2_, boolean p_i232288_3_, int[] p_i232288_4_, EditBookScreen.BookLine[] p_i232288_5_, Rectangle2d[] p_i232288_6_) -
Method Summary
Modifier and TypeMethodDescriptionint
changeLine
(int p_238788_1_, int p_238788_2_) int
findLineEnd
(int p_238791_1_) int
findLineStart
(int p_238787_1_) int
getIndexAtPosition
(FontRenderer p_238789_1_, EditBookScreen.Point p_238789_2_)
-
Field Details
-
EMPTY
-
fullText
-
cursor
-
cursorAtEnd
private final boolean cursorAtEnd -
lineStarts
private final int[] lineStarts -
lines
-
selection
-
-
Constructor Details
-
BookPage
public BookPage(String p_i232288_1_, EditBookScreen.Point p_i232288_2_, boolean p_i232288_3_, int[] p_i232288_4_, EditBookScreen.BookLine[] p_i232288_5_, Rectangle2d[] p_i232288_6_)
-
-
Method Details
-
getIndexAtPosition
-
changeLine
public int changeLine(int p_238788_1_, int p_238788_2_) -
findLineStart
public int findLineStart(int p_238787_1_) -
findLineEnd
public int findLineEnd(int p_238791_1_)
-