MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / splitStringToWidth

Method splitStringToWidth

Minecraft-Utils/1.8.8/src/Variables.java:162–170  ·  view source on GitHub ↗
(String string, int width)

Source from the content-addressed store, hash-verified

160 }
161
162 @Override
163 public List<String> splitStringToWidth(String string, int width) {
164 Validate.isTrue(width > 0);
165 if (string == null)
166 return Collections.emptyList();
167 if (string.isEmpty())
168 return Collections.singletonList("");
169 return getFontrenderer().c(string, width);
170 }
171
172 @Override
173 public int getStringWidth(String string) {

Callers

nothing calls this directly

Calls 3

getFontrendererMethod · 0.95
isEmptyMethod · 0.80
cMethod · 0.45

Tested by

no test coverage detected