Skip to content

Commit

Permalink
Add Color#EMPTY And Color#BLANK
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Mar 17, 2024
1 parent 8a08da7 commit 0f6c4c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/mmodding/mmodding_lib/colors/Color.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

import net.minecraft.client.util.ColorUtil;

import java.util.function.Supplier;

public interface Color {

Supplier<Color> EMPTY = () -> Color.rgb(0, 0, 0);

Supplier<Color> BLANK = () -> Color.rgb(255, 255, 255);

static RGB rgb(Color color) {
return Color.rgb(color.toDecimal());
}
Expand Down

0 comments on commit 0f6c4c3

Please sign in to comment.