diff options
| author | 2024-01-09 19:37:28 +0100 | |
|---|---|---|
| committer | 2024-01-09 19:37:28 +0100 | |
| commit | 4606c536a6260477870426234f748067240de3d1 (patch) | |
| tree | 52ecd35ab0a51dd84bbebb675f5433a85166b132 /src/main/java/lv/enes/mc/eris_alchemy/utils/DyeUtils.java | |
| parent | Replace ItemMixin.java with proper ItemTooltipCallback usage. (diff) | |
| download | mc-eris-alchemy-4606c536a6260477870426234f748067240de3d1.tar.gz mc-eris-alchemy-4606c536a6260477870426234f748067240de3d1.tar.xz mc-eris-alchemy-4606c536a6260477870426234f748067240de3d1.zip | |
Added Alchemical Chest.
Diffstat (limited to 'src/main/java/lv/enes/mc/eris_alchemy/utils/DyeUtils.java')
| -rw-r--r-- | src/main/java/lv/enes/mc/eris_alchemy/utils/DyeUtils.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/lv/enes/mc/eris_alchemy/utils/DyeUtils.java b/src/main/java/lv/enes/mc/eris_alchemy/utils/DyeUtils.java index 83c8e04..3ceb965 100644 --- a/src/main/java/lv/enes/mc/eris_alchemy/utils/DyeUtils.java +++ b/src/main/java/lv/enes/mc/eris_alchemy/utils/DyeUtils.java | |||
| @@ -7,7 +7,7 @@ import net.minecraft.world.level.block.Blocks; | |||
| 7 | import net.minecraft.world.level.block.ConcretePowderBlock; | 7 | import net.minecraft.world.level.block.ConcretePowderBlock; |
| 8 | import net.minecraft.world.level.block.ShulkerBoxBlock; | 8 | import net.minecraft.world.level.block.ShulkerBoxBlock; |
| 9 | 9 | ||
| 10 | public class DyeUtils { | 10 | public final class DyeUtils { |
| 11 | public static Block getConcrete(DyeColor color) { | 11 | public static Block getConcrete(DyeColor color) { |
| 12 | return switch (color) { | 12 | return switch (color) { |
| 13 | case BLACK -> Blocks.BLACK_CONCRETE; | 13 | case BLACK -> Blocks.BLACK_CONCRETE; |
| @@ -57,4 +57,6 @@ public class DyeUtils { | |||
| 57 | public static ShulkerBoxBlock getShulkerBox(DyeColor color) { | 57 | public static ShulkerBoxBlock getShulkerBox(DyeColor color) { |
| 58 | return (ShulkerBoxBlock)ShulkerBoxBlock.getBlockByColor(color); | 58 | return (ShulkerBoxBlock)ShulkerBoxBlock.getBlockByColor(color); |
| 59 | } | 59 | } |
| 60 | |||
| 61 | private DyeUtils() {} | ||
| 60 | } | 62 | } |