(int mouseX, int mouseY, float partialTicks)
| 225 | } |
| 226 | |
| 227 | @Override |
| 228 | public void drawScreen(int mouseX, int mouseY, float partialTicks) { |
| 229 | minX = (width - PAGE_LEFT.width * 2) / 2; |
| 230 | minY = (height - BOOK_COVER.height) / 2; |
| 231 | mouse.setMousePosition(mouseX, mouseY); |
| 232 | try { |
| 233 | if (isOpen) { |
| 234 | drawOpen(partialTicks); |
| 235 | } else if (isOpening) { |
| 236 | drawOpening(partialTicks); |
| 237 | } else { |
| 238 | drawCover(); |
| 239 | } |
| 240 | } catch (Throwable t) { |
| 241 | // Temporary fix for crash report classes crashing so we can see the ACTUAL error |
| 242 | t.printStackTrace(); |
| 243 | throw Throwables.propagate(t); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | public void drawTooltip(ItemStack stack, int x, int y) { |
| 248 | renderToolTip(stack, x, y); |
nothing calls this directly
no test coverage detected