Skip to content

Commit 89b91e8

Browse files
author
Snabeldier
committed
chore: rework naming and coloring of inherent properties
1 parent a4b3696 commit 89b91e8

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/main/java/minevalley/fastcar/api/production/shape/InherentProperty.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,32 @@
66
import minevalley.core.api.Core;
77
import minevalley.core.api.utils.ItemBuilder;
88
import net.kyori.adventure.text.format.NamedTextColor;
9+
import net.kyori.adventure.text.format.TextColor;
910

1011
import javax.annotation.Nonnull;
1112

1213
@SuppressWarnings("unused")
1314
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
1415
public enum InherentProperty implements ShapeProperty {
15-
SCALE("Modell-Skalierung", "c5e72a71efd4842730274612b93a4de6ea0785ea2c724b139b63b6f926d7e24f"),
16-
BOUNDING_BOX("Bound-Box", "3ed1aba73f639f4bc42bd48196c715197be2712c3b962c97ebf9e9ed8efa025");
16+
SCALE(
17+
"Modell-Skalierung",
18+
"c5e72a71efd4842730274612b93a4de6ea0785ea2c724b139b63b6f926d7e24f",
19+
NamedTextColor.GREEN
20+
),
21+
BOUNDING_BOX(
22+
"Bounding-Box",
23+
"3ed1aba73f639f4bc42bd48196c715197be2712c3b962c97ebf9e9ed8efa025",
24+
NamedTextColor.RED
25+
);
1726

1827
@Getter
1928
@Nonnull
2029
private final String displayName;
2130
private final String skull;
31+
private final TextColor color;
2232

2333
@Override
2434
public @Nonnull ItemBuilder getItem() {
25-
return Core.createItem(skull).setDisplayName(displayName, NamedTextColor.GOLD);
35+
return Core.createItem(skull).setDisplayName(displayName, color);
2636
}
2737
}

0 commit comments

Comments
 (0)