MCPcopy Create free account
hub / github.com/ZetaMap/MoreCommands / run

Method run

src/main/java/data/Effects.java:87–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85
86 rainbowLoop = new Timer.Task() {
87 @Override
88 public void run() {
89 TempData.each(d -> d.rainbowed, d -> {
90 if (d.hue < 360) d.hue+=5;
91 else d.hue = 0;
92
93 for (int i=0; i<5; i++) Call.effectReliable(mindustry.content.Fx.bubble, d.player.x, d.player.y, 10, arc.graphics.Color.valueOf(Strings.hueToColor(d.hue)));
94 d.rainbowedName = Strings.RGBString(d.noColorName, d.hue);
95 d.player.name = d.tag + d.rainbowedName;
96 });
97 }
98 };
99
100 effectLoop = new Timer.Task() {

Callers

nothing calls this directly

Calls 3

eachMethod · 0.95
hueToColorMethod · 0.95
RGBStringMethod · 0.95

Tested by

no test coverage detected