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

Method splitStringToWidth

Minecraft-Utils/1.7.10/src/Variables.java:153–161  ·  view source on GitHub ↗
(String string, int width)

Source from the content-addressed store, hash-verified

151 }
152
153 @Override
154 public List<String> splitStringToWidth(String string, int width) {
155 Validate.isTrue(width > 0);
156 if (string == null)
157 return Collections.emptyList();
158 if (string.isEmpty())
159 return Collections.singletonList("");
160 return getFontrenderer().c(string, width);
161 }
162
163 @Override
164 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