Package net.minecraft.client.gui.screen
Class EditBookScreen.BookPage
- java.lang.Object
-
- net.minecraft.client.gui.screen.EditBookScreen.BookPage
-
- Enclosing class:
- EditBookScreen
static class EditBookScreen.BookPage extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private EditBookScreen.Point
cursor
private boolean
cursorAtEnd
private static EditBookScreen.BookPage
EMPTY
private java.lang.String
fullText
private EditBookScreen.BookLine[]
lines
private int[]
lineStarts
private Rectangle2d[]
selection
-
Constructor Summary
Constructors Constructor Description BookPage(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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 Detail
-
EMPTY
private static final EditBookScreen.BookPage EMPTY
-
fullText
private final java.lang.String fullText
-
cursor
private final EditBookScreen.Point cursor
-
cursorAtEnd
private final boolean cursorAtEnd
-
lineStarts
private final int[] lineStarts
-
lines
private final EditBookScreen.BookLine[] lines
-
selection
private final Rectangle2d[] selection
-
-
Constructor Detail
-
BookPage
public BookPage(java.lang.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 Detail
-
getIndexAtPosition
public int getIndexAtPosition(FontRenderer p_238789_1_, EditBookScreen.Point p_238789_2_)
-
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_)
-
-