com.magistuarmory.item.ShieldsSupply Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of 1.20.2-epic-knights-common Show documentation
Show all versions of 1.20.2-epic-knights-common Show documentation
mod that adds medieval stuff to the game
package com.magistuarmory.item;
import dev.architectury.registry.registries.RegistrySupplier;
import java.util.function.BiFunction;
import net.minecraft.class_1792;
public class ShieldsSupply extends ItemsSupply
{
public String shieldName;
public String woodTexture;
public String stoneTexture;
public String ironTexture;
public String goldTexture;
public String diamondTexture;
public String netheriteTexture;
public String copperTexture;
public String steelTexture;
public String silverTexture;
public String tinTexture;
public String bronzeTexture;
public ShieldsSupply(BiFunction> workshop, String shieldName)
{
super(workshop, new class_1792.class_1793());
this.shieldName = shieldName;
this.woodTexture = "entity/" + ModItemTier.WOOD.getMaterialName() + "_" + shieldName;
this.stoneTexture = "entity/" + ModItemTier.STONE.getMaterialName() + "_" + shieldName;
this.ironTexture = "entity/" + ModItemTier.IRON.getMaterialName() + "_" + shieldName;
this.goldTexture = "entity/" + ModItemTier.GOLD.getMaterialName() + "_" + shieldName;
this.diamondTexture = "entity/" + ModItemTier.DIAMOND.getMaterialName() + "_" + shieldName;
this.copperTexture = "entity/" + ModItemTier.COPPER.getMaterialName() + "_" + shieldName;
this.steelTexture = "entity/" + ModItemTier.STEEL.getMaterialName() + "_" + shieldName;
this.silverTexture = "entity/" + ModItemTier.SILVER.getMaterialName() + "_" + shieldName;
this.netheriteTexture = "entity/" + ModItemTier.NETHERITE.getMaterialName() + "_" + shieldName;
this.tinTexture = "entity/" + ModItemTier.TIN.getMaterialName() + "_" + shieldName;
this.bronzeTexture = "entity/" + ModItemTier.BRONZE.getMaterialName() + "_" + shieldName;
}
}