From ccf43a0bd8c49a6906991de4577eab36dbcef91a Mon Sep 17 00:00:00 2001 From: IThundxr Date: Thu, 16 Nov 2023 22:13:24 -0500 Subject: [PATCH] last changes for tonight, 1370 left --- .../quark/base/util/CorundumColor.java | 26 +++++++++---------- .../content/world/block/CorundumBlock.java | 6 +++-- .../content/world/module/CorundumModule.java | 10 +++---- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/main/java/org/violetmoon/quark/base/util/CorundumColor.java b/src/main/java/org/violetmoon/quark/base/util/CorundumColor.java index 2da770afc8..3f621b8f0d 100644 --- a/src/main/java/org/violetmoon/quark/base/util/CorundumColor.java +++ b/src/main/java/org/violetmoon/quark/base/util/CorundumColor.java @@ -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; } } diff --git a/src/main/java/org/violetmoon/quark/content/world/block/CorundumBlock.java b/src/main/java/org/violetmoon/quark/content/world/block/CorundumBlock.java index 7ae9fee4de..0a51431063 100644 --- a/src/main/java/org/violetmoon/quark/content/world/block/CorundumBlock.java +++ b/src/main/java/org/violetmoon/quark/content/world/block/CorundumBlock.java @@ -15,6 +15,7 @@ import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.SoundType; import net.minecraft.world.level.block.state.BlockState; +import net.minecraft.world.level.material.MapColor; import org.joml.Vector3f; import org.violetmoon.quark.base.Quark; import org.violetmoon.quark.content.world.module.CorundumModule; @@ -33,9 +34,10 @@ public class CorundumBlock extends ZetaGlassBlock { public CorundumClusterBlock cluster; - public CorundumBlock(String regname, int color, ZetaModule module, MaterialColor materialColor, boolean waxed) { + public CorundumBlock(String regname, int color, ZetaModule module, MapColor mapColor, boolean waxed) { super(regname, module, CreativeModeTab.TAB_DECORATIONS, true, - Block.Properties.of(Material.GLASS, materialColor) + Block.Properties.of(Material.GLASS) + .mapColor(mapColor) .strength(0.3F, 0F) .sound(SoundType.AMETHYST) .lightLevel(b -> 11) diff --git a/src/main/java/org/violetmoon/quark/content/world/module/CorundumModule.java b/src/main/java/org/violetmoon/quark/content/world/module/CorundumModule.java index 72ed159d02..0595a4b1a3 100644 --- a/src/main/java/org/violetmoon/quark/content/world/module/CorundumModule.java +++ b/src/main/java/org/violetmoon/quark/content/world/module/CorundumModule.java @@ -13,7 +13,7 @@ import net.minecraft.world.level.Level; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.state.BlockState; -import net.minecraft.world.level.material.MaterialColor; +import net.minecraft.world.level.material.MapColor; import org.apache.commons.lang3.tuple.Pair; import org.violetmoon.quark.base.Quark; import org.violetmoon.quark.base.config.Config; @@ -76,7 +76,7 @@ public class CorundumModule extends AbstractUndergroundStyleModule