diff --git a/gradle.properties b/gradle.properties index eb021e0..1987631 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,12 +4,12 @@ org.gradle.jvmargs=-Xmx2G bta_version=7.1 # Loader -loader_version=0.14.19-babric.3-bta +loader_version=0.15.6-babric.4-bta # HalpLibe -halplibe_version=3.5.2 +halplibe_version=3.5.3 -prismatic_version=3.0.3-7.1 +prismatic_version=3.1.2-7.1 # Mod mod_version=1.0.4 diff --git a/src/main/java/mizurin/shieldmod/armorRecipeColor.java b/src/main/java/mizurin/shieldmod/armorRecipeColor.java index 0c53e06..3552b30 100644 --- a/src/main/java/mizurin/shieldmod/armorRecipeColor.java +++ b/src/main/java/mizurin/shieldmod/armorRecipeColor.java @@ -1,6 +1,7 @@ package mizurin.shieldmod; import com.mojang.nbt.CompoundTag; +import mizurin.shieldmod.item.ArmorColored; import net.minecraft.core.data.registry.recipe.SearchQuery; import net.minecraft.core.data.registry.recipe.entry.RecipeEntryCraftingDynamic; import net.minecraft.core.item.Item; @@ -8,8 +9,6 @@ import net.minecraft.core.item.ItemStack; import net.minecraft.core.player.inventory.InventoryCrafting; import net.minecraft.core.util.helper.Color; -import useless.prismaticlibe.IColoredArmor; -import useless.prismaticlibe.debug.ItemArmorColored; import java.util.ArrayList; import java.util.HashMap; @@ -37,7 +36,7 @@ public ItemStack getCraftingResult(InventoryCrafting inventorycrafting) { for (int y = 0; y < 3; ++y) { ItemStack stack = inventorycrafting.getItemStackAt(x, y); if (stack == null) continue; - if (stack.getItem() instanceof IColoredArmor) { + if (stack.getItem() instanceof ArmorColored) { armorStack = stack; } else if (dyeMap.containsKey(stack.getItem())) { dyeStacks.add(stack); @@ -102,7 +101,7 @@ public boolean matches(InventoryCrafting crafting) { for (int y = 0; y < 3; ++y) { ItemStack stack = crafting.getItemStackAt(x, y); if (stack == null) continue; - if (stack.getItem() instanceof IColoredArmor) { + if (stack.getItem() instanceof ArmorColored) { if (armorStack != null) { return false; } diff --git a/src/main/java/mizurin/shieldmod/item/ArmorColored.java b/src/main/java/mizurin/shieldmod/item/ArmorColored.java index 5866a50..ddb6f33 100644 --- a/src/main/java/mizurin/shieldmod/item/ArmorColored.java +++ b/src/main/java/mizurin/shieldmod/item/ArmorColored.java @@ -13,13 +13,13 @@ import java.awt.*; -public class ArmorColored extends ItemArmor implements IColoredArmor, IColored { +public class ArmorColored extends ItemArmor implements IColored, IColoredArmor { public static final String MOD_ID = ShieldMod.MOD_ID; - public static final int[][] baseColor = new int[][] { - TextureHelper.getOrCreateItemTexture(ShieldMod.MOD_ID, "leather_helmet.png"), - TextureHelper.getOrCreateItemTexture(ShieldMod.MOD_ID, "leather_chestplate.png"), - TextureHelper.getOrCreateItemTexture(ShieldMod.MOD_ID, "leather_leggings.png"), - TextureHelper.getOrCreateItemTexture(ShieldMod.MOD_ID, "leather_boots.png")}; + private final int[][] armorColor = new int[][] { + TextureHelper.getOrCreateItemTexture(ShieldMod.MOD_ID, "armor/leather_helmet.png"), + TextureHelper.getOrCreateItemTexture(ShieldMod.MOD_ID, "armor/leather_chestplate.png"), + TextureHelper.getOrCreateItemTexture(ShieldMod.MOD_ID, "armor/leather_leggings.png"), + TextureHelper.getOrCreateItemTexture(ShieldMod.MOD_ID, "armor/leather_boots.png")}; public ArmorColored(String name, int id, ArmorMaterial material, int armorPiece) { super(name, id, material, armorPiece); @@ -36,10 +36,9 @@ public Color getColor(ItemStack itemStack){ } @Override public ColoredTexture[] getTextures(ItemStack itemStack) { - return new ColoredTexture[]{new ColoredTexture(baseColor[armorPiece], getColor(itemStack))}; + return new ColoredTexture[]{new ColoredTexture(armorColor[armorPiece], getColor(itemStack))}; } - @Override public ColoredArmorTexture[] getArmorTextures(ItemStack itemStack) { return new ColoredArmorTexture[]{new ColoredArmorTexture("leather", getColor(itemStack))}; } diff --git a/src/main/java/mizurin/shieldmod/item/Shields.java b/src/main/java/mizurin/shieldmod/item/Shields.java index 74021f7..957a1d1 100644 --- a/src/main/java/mizurin/shieldmod/item/Shields.java +++ b/src/main/java/mizurin/shieldmod/item/Shields.java @@ -6,10 +6,7 @@ import turniplabs.halplibe.helper.ItemHelper; import mizurin.shieldmod.ShieldMod; import org.slf4j.Logger; -import useless.prismaticlibe.IColoredArmor; -import useless.prismaticlibe.debug.ItemArmorColored; import net.minecraft.core.item.material.ArmorMaterial; -import turniplabs.halplibe.helper.ArmorHelper; public class Shields { public static final String MOD_ID = ShieldMod.MOD_ID; diff --git a/src/main/java/mizurin/shieldmod/recipeColor.java b/src/main/java/mizurin/shieldmod/recipeColor.java index 50fc9be..9be2fa1 100644 --- a/src/main/java/mizurin/shieldmod/recipeColor.java +++ b/src/main/java/mizurin/shieldmod/recipeColor.java @@ -1,7 +1,6 @@ package mizurin.shieldmod; import com.mojang.nbt.CompoundTag; -import net.minecraft.client.util.helper.Colors; import net.minecraft.core.data.registry.recipe.SearchQuery; import net.minecraft.core.data.registry.recipe.entry.RecipeEntryCraftingDynamic; import net.minecraft.core.item.Item; diff --git a/src/main/resources/assets/shieldmod/item/leather_boots.png b/src/main/resources/assets/shieldmod/item/armor/leather_boots.png similarity index 100% rename from src/main/resources/assets/shieldmod/item/leather_boots.png rename to src/main/resources/assets/shieldmod/item/armor/leather_boots.png diff --git a/src/main/resources/assets/shieldmod/item/leather_chestplate.png b/src/main/resources/assets/shieldmod/item/armor/leather_chestplate.png similarity index 100% rename from src/main/resources/assets/shieldmod/item/leather_chestplate.png rename to src/main/resources/assets/shieldmod/item/armor/leather_chestplate.png diff --git a/src/main/resources/assets/shieldmod/item/leather_helmet.png b/src/main/resources/assets/shieldmod/item/armor/leather_helmet.png similarity index 100% rename from src/main/resources/assets/shieldmod/item/leather_helmet.png rename to src/main/resources/assets/shieldmod/item/armor/leather_helmet.png diff --git a/src/main/resources/assets/shieldmod/item/leather_leggings.png b/src/main/resources/assets/shieldmod/item/armor/leather_leggings.png similarity index 100% rename from src/main/resources/assets/shieldmod/item/leather_leggings.png rename to src/main/resources/assets/shieldmod/item/armor/leather_leggings.png