Class BookEditScreen.DisplayCache
java.lang.Object
net.minecraft.client.gui.screens.inventory.BookEditScreen.DisplayCache
- Enclosing class:
- BookEditScreen
-
Field Summary
Modifier and TypeFieldDescription(package private) final BookEditScreen.Pos2i
(package private) final boolean
(package private) static final BookEditScreen.DisplayCache
private final String
(package private) final BookEditScreen.LineInfo[]
private final int[]
(package private) final Rect2i[]
-
Constructor Summary
ConstructorDescriptionDisplayCache
(String p_98201_, BookEditScreen.Pos2i p_98202_, boolean p_98203_, int[] p_98204_, BookEditScreen.LineInfo[] p_98205_, Rect2i[] p_98206_) -
Method Summary
Modifier and TypeMethodDescriptionint
changeLine
(int p_98211_, int p_98212_) int
findLineEnd
(int p_98219_) int
findLineStart
(int p_98209_) int
getIndexAtPosition
(Font p_98214_, BookEditScreen.Pos2i p_98215_)
-
Field Details
-
EMPTY
-
fullText
-
cursor
-
cursorAtEnd
final boolean cursorAtEnd -
lineStarts
private final int[] lineStarts -
lines
-
selection
-
-
Constructor Details
-
DisplayCache
public DisplayCache(String p_98201_, BookEditScreen.Pos2i p_98202_, boolean p_98203_, int[] p_98204_, BookEditScreen.LineInfo[] p_98205_, Rect2i[] p_98206_)
-
-
Method Details
-
getIndexAtPosition
-
changeLine
public int changeLine(int p_98211_, int p_98212_) -
findLineStart
public int findLineStart(int p_98209_) -
findLineEnd
public int findLineEnd(int p_98219_)
-