MCPcopy Create free account
hub / github.com/demoth/jake2 / Init

Method Init

client/src/main/java/jake2/client/Console.java:183–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181
182
183 public static void Init() {
184 ClientGlobals.con.linewidth = -1;
185 ClientGlobals.con.backedit = 0;
186
187 CheckResize();
188
189 Com.Printf("Console initialized.\n");
190
191 //
192 // register our commands
193 //
194 ClientGlobals.con_notifytime = Cvar.getInstance().Get("con_notifytime", "3", 0);
195
196 Cmd.AddCommand("toggleconsole", ToggleConsole_f);
197 Cmd.AddCommand("togglechat", ToggleChat_f);
198 Cmd.AddCommand("messagemode", MessageMode_f);
199 Cmd.AddCommand("messagemode2", MessageMode2_f);
200 Cmd.AddCommand("clear", Clear_f);
201 Cmd.AddCommand("condump", Dump_f);
202 Cmd.AddCommand("console_print", args -> Console.Print(args.get(0)));
203 ClientGlobals.con.initialized = true;
204 }
205
206 /**
207 * If the line width has changed, reformat the buffer.

Callers 1

InitMethod · 0.95

Calls 7

CheckResizeMethod · 0.95
PrintfMethod · 0.95
getInstanceMethod · 0.95
AddCommandMethod · 0.95
PrintMethod · 0.95
GetMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected