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

Method Sky_f

client/src/main/java/jake2/client/SCR.java:397–420  ·  view source on GitHub ↗
(List<String> args)

Source from the content-addressed store, hash-verified

395 * Set a specific sky and rotation speed =================
396 */
397 private static void Sky_f(List<String> args) {
398 float rotate;
399 float[] axis = { 0, 0, 0 };
400
401 if (args.size() < 2) {
402 Com.Printf("Usage: sky <basename> <rotate> <axis x y z>\n");
403 return;
404 }
405 if (args.size() > 2)
406 rotate = Float.parseFloat(args.get(2));
407 else
408 rotate = 0;
409 if (args.size() == 6) {
410 axis[0] = Float.parseFloat(args.get(3));
411 axis[1] = Float.parseFloat(args.get(4));
412 axis[2] = Float.parseFloat(args.get(5));
413 } else {
414 axis[0] = 0;
415 axis[1] = 0;
416 axis[2] = 1;
417 }
418
419 ClientGlobals.re.SetSky(args.get(1), rotate, axis);
420 }
421
422 // ============================================================================
423

Callers

nothing calls this directly

Calls 4

PrintfMethod · 0.95
sizeMethod · 0.80
SetSkyMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected