Implement Item Properties and get Forge Version up to date

This commit is contained in:
2022-07-03 17:37:52 +02:00
parent 28d8f0fa6a
commit 9d749fe2ee
19 changed files with 245 additions and 24 deletions

View File

@@ -3,6 +3,7 @@ package me.hypherionmc.craterlib.util;
import com.mojang.math.Vector4f;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.world.item.DyeColor;
public class RenderUtils {
@@ -51,4 +52,8 @@ public class RenderUtils {
return pPackedColor & 255;
}
}
public static int renderColorFromDye(DyeColor color) {
return color.getMaterialColor().col | 0xFF000000;
}
}