Buildscript

This commit is contained in:
kuba6000 committed 2022-10-12 21:09:18 +02:00
1 parent e73f5a841e
commit d993c90c3e
18 files changed
+1918 -1516

No files matched your search

@@ -1,23 +1,23 @@
package magicbees.bees;
import java.awt.Color;
import forestry.api.apiculture.IBeeIconColourProvider;
public enum BeeIconColourProvider implements IBeeIconColourProvider {
RAINBOW {
@Override
public int getIconColour(int renderPass) {
if (renderPass == 0) {
int hue = (int) (System.currentTimeMillis() >> 2) % 360;
return Color.getHSBColor(hue / 360f, 0.75f, 0.80f).getRGB();
} else if (renderPass == 1) {
int hue = (int) (System.currentTimeMillis() >> 3) % 360;
hue += 60;
hue = hue % 360;
return Color.getHSBColor(hue / 360f, 0.5f, 0.6f).getRGB();
}
return 0xffffff;
}
}
}
package magicbees.bees;
import java.awt.Color;
import forestry.api.apiculture.IBeeIconColourProvider;
public enum BeeIconColourProvider implements IBeeIconColourProvider {
RAINBOW {
@Override
public int getIconColour(int renderPass) {
if (renderPass == 0) {
int hue = (int) (System.currentTimeMillis() >> 2) % 360;
return Color.getHSBColor(hue / 360f, 0.75f, 0.80f).getRGB();
} else if (renderPass == 1) {
int hue = (int) (System.currentTimeMillis() >> 3) % 360;
hue += 60;
hue = hue % 360;
return Color.getHSBColor(hue / 360f, 0.5f, 0.6f).getRGB();
}
return 0xffffff;
}
}
}