(String title, String subTitle, Object uniqueReference)
| 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 | } |
no test coverage detected