MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / getCaretPos

Method getCaretPos

src/main/java/ui/controls/ExTextBox.java:146–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 setText(src + sb.toString());
145 }
146 public int getCaretPos() {
147 int pos = textbox.getCaretPosition();
148 if (pos < 0)
149 pos = textbox.getString().length();
150 return pos;
151 }
152 public final void setText(String body) {
153 if (body != null) {
154 if (body.length() > maxSize)

Callers 1

executeCommandMethod · 0.95

Calls 2

getCaretPositionMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected