Implement Item Properties and get Forge Version up to date
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user