MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / drawScreen

Method drawScreen

The 5zig Mod/src/eu/the5zig/mod/gui/GuiParty.java:238–250  ·  view source on GitHub ↗
(int mouseX, int mouseY, float partialTicks)

Source from the content-addressed store, hash-verified

236 }
237
238 @Override
239 protected void drawScreen(int mouseX, int mouseY, float partialTicks) {
240 Party party = The5zigMod.getPartyManager().getParty();
241 if (party == null) {
242 List<String> splitStringToWidth = The5zigMod.getVars().splitStringToWidth(I18n.translate("party.help"), getWidth() - 60);
243 for (int i = 0, splitStringToWidthSize = splitStringToWidth.size(); i < splitStringToWidthSize; i++) {
244 String line = splitStringToWidth.get(i);
245 drawCenteredString(line, getWidth() / 2, getHeight() / 6 + 30 + i * 12);
246 }
247 } else {
248 The5zigMod.getVars().drawString(I18n.translate("party.from", party.getOwner().getUsername()), 4, 40);
249 }
250 }
251
252 @Override
253 public String getTitleKey() {

Callers

nothing calls this directly

Calls 13

getPartyManagerMethod · 0.95
getVarsMethod · 0.95
translateMethod · 0.95
getOwnerMethod · 0.95
getPartyMethod · 0.80
sizeMethod · 0.80
splitStringToWidthMethod · 0.65
getWidthMethod · 0.65
getMethod · 0.65
drawCenteredStringMethod · 0.65
getHeightMethod · 0.65
drawStringMethod · 0.65

Tested by

no test coverage detected