-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
26 changes: 13 additions & 13 deletions
26
src/main/java/org/violetmoon/quark/base/util/CorundumColor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package org.violetmoon.quark.base.util; | ||
|
||
import net.minecraft.world.level.material.MaterialColor; | ||
import net.minecraft.world.level.material.MapColor; | ||
|
||
public enum CorundumColor { | ||
RED("red", 0xff0000, MaterialColor.COLOR_RED), | ||
ORANGE("orange", 0xff8000, MaterialColor.COLOR_ORANGE), | ||
YELLOW("yellow", 0xffff00, MaterialColor.COLOR_YELLOW), | ||
GREEN("green", 0x00ff00, MaterialColor.COLOR_GREEN), | ||
BLUE("blue", 0x00ffff, MaterialColor.COLOR_LIGHT_BLUE), | ||
INDIGO("indigo", 0x0000ff, MaterialColor.COLOR_BLUE), | ||
VIOLET("violet", 0xff00ff, MaterialColor.COLOR_MAGENTA), | ||
WHITE("white", 0xffffff, MaterialColor.SNOW), | ||
BLACK("black", 0x000000, MaterialColor.COLOR_BLACK); | ||
RED("red", 0xff0000, MapColor.COLOR_RED), | ||
ORANGE("orange", 0xff8000, MapColor.COLOR_ORANGE), | ||
YELLOW("yellow", 0xffff00, MapColor.COLOR_YELLOW), | ||
GREEN("green", 0x00ff00, MapColor.COLOR_GREEN), | ||
BLUE("blue", 0x00ffff, MapColor.COLOR_LIGHT_BLUE), | ||
INDIGO("indigo", 0x0000ff, MapColor.COLOR_BLUE), | ||
VIOLET("violet", 0xff00ff, MapColor.COLOR_MAGENTA), | ||
WHITE("white", 0xffffff, MapColor.SNOW), | ||
BLACK("black", 0x000000, MapColor.COLOR_BLACK); | ||
|
||
public final String name; | ||
public final int beaconColor; | ||
public final MaterialColor materialColor; | ||
public final MapColor mapColor; | ||
|
||
CorundumColor(String name, int beaconColor, MaterialColor materialColor) { | ||
CorundumColor(String name, int beaconColor, MapColor mapColor) { | ||
this.name = name; | ||
this.beaconColor = beaconColor; | ||
this.materialColor = materialColor; | ||
this.mapColor = mapColor; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters