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