MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / drawScreen

Method drawScreen

common/buildcraft/lib/client/guide/GuiGuide.java:227–245  ·  view source on GitHub ↗
(int mouseX, int mouseY, float partialTicks)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

drawOpenMethod · 0.95
drawOpeningMethod · 0.95
drawCoverMethod · 0.95
setMousePositionMethod · 0.80

Tested by

no test coverage detected