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

Method splitStringToWidth

Minecraft-Utils/1.13/src/Variables.java:171–179  ·  view source on GitHub ↗
(String string, int width)

Source from the content-addressed store, hash-verified

169 }
170
171 @Override
172 public List<String> splitStringToWidth(String string, int width) {
173 Validate.isTrue(width > 0);
174 if (string == null)
175 return Collections.emptyList();
176 if (string.isEmpty())
177 return Collections.singletonList("");
178 return getFontrenderer().c(string, width);
179 }
180
181 @Override
182 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