MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getVHeight

Method getVHeight

src/main/java/Messages/MessageItem.java:66–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 public int getVHeight() {
67 if (msg==null) return 0;
68 if (itemHeight<0) {
69 itemHeight=getFont().getHeight();
70 }
71 if (msg.delivered) {
72 int rh=RosterIcons.getInstance().getHeight();
73 Math.max(rh, Math.max(itemHeight, Config.getInstance().minItemHeight));
74 }
75 return Math.max(itemHeight, Config.getInstance().minItemHeight);
76 }
77
78 public Font getFont() {
79 return FontCache.getFont(false, FontCache.msg);

Callers 1

drawItemMethod · 0.95

Calls 4

getFontMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95
getHeightMethod · 0.65

Tested by

no test coverage detected