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

Method create

Minecraft-Utils/1.12/src/Overlay.java:113–126  ·  view source on GitHub ↗
(String title, String subTitle, Object uniqueReference)

Source from the content-addressed store, hash-verified

111 }
112
113 public static void create(String title, String subTitle, Object uniqueReference) {
114 bka toastFactory = ((Variables) MinecraftFactory.getVars()).getMinecraft().ao();
115
116 if (uniqueReference == null) {
117 toastFactory.a(new Toast(null, title, subTitle));
118 } else {
119 Toast toast = toastFactory.a(Toast.class, uniqueReference);
120 if (toast == null) {
121 toastFactory.a(new Toast(uniqueReference, title, subTitle));
122 } else {
123 toast.update(title, subTitle);
124 }
125 }
126 }
127 }
128
129}

Callers 2

displayMessageMethod · 0.95
getMethod · 0.45

Calls 4

getVarsMethod · 0.95
updateMethod · 0.95
getMinecraftMethod · 0.45
aMethod · 0.45

Tested by

no test coverage detected