(String string, int width)
| 157 | } |
| 158 | |
| 159 | @Override |
| 160 | public List<String> splitStringToWidth(String string, int width) { |
| 161 | Validate.isTrue(width > 0); |
| 162 | if (string == null) |
| 163 | return Collections.emptyList(); |
| 164 | if (string.isEmpty()) |
| 165 | return Collections.singletonList(""); |
| 166 | return getFontrenderer().c(string, width); |
| 167 | } |
| 168 | |
| 169 | @Override |
| 170 | public int getStringWidth(String string) { |
nothing calls this directly
no test coverage detected