Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.magistuarmory.item.forge.ItemRegistryHelperImpl Maven / Gradle / Ivy
package com.magistuarmory.item.forge;
import com.magistuarmory.forge.item.LanceItemForge;
import com.magistuarmory.forge.item.MedievalShieldItemForge;
import com.magistuarmory.forge.item.MedievalWeaponItemForge;
import com.magistuarmory.forge.item.PaviseItemForge;
import com.magistuarmory.forge.item.armor.*;
import com.magistuarmory.item.*;
import com.magistuarmory.item.armor.DyeableWearableArmorDecorationItem;
import com.magistuarmory.item.armor.MedievalArmorItem;
import com.magistuarmory.item.armor.WearableArmorDecorationItem;
import dev.architectury.registry.registries.DeferredRegister;
import dev.architectury.registry.registries.RegistrySupplier;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.ArmorItem;
import net.minecraft.world.item.ArmorMaterial;
import net.minecraft.world.item.Item;
public class ItemRegistryHelperImpl
{
public static RegistrySupplier registerKnightItem(DeferredRegister- items, String id, ArmorMaterial material, EquipmentSlot type, Item.Properties properties)
{
return items.register(id, () -> new KnightItemForge(material, type, properties));
}
public static RegistrySupplier
registerJoustingItem(DeferredRegister- items, String id, ArmorMaterial material, EquipmentSlot type, Item.Properties properties)
{
return items.register(id, () -> new JoustingItemForge(material, type, properties));
}
public static RegistrySupplier
registerMedievalArmorItem(DeferredRegister- items, String id, ArmorMaterial material, EquipmentSlot type, Item.Properties properties)
{
return items.register(id, () -> new MedievalArmorItemForge(material, type, properties));
}
public static RegistrySupplier
registerDyeableMedievalArmorItem(DeferredRegister- items, String id, ArmorMaterial material, EquipmentSlot type, Item.Properties properties, int defaultcolor)
{
return items.register(id, () -> new DyeableMedievalArmorItemForge(material, type, properties, defaultcolor));
}
public static RegistrySupplier
registerWearableArmorDecorationItem(DeferredRegister- items, String id, ArmorMaterial material, EquipmentSlot type, Item.Properties properties)
{
return items.register(id, () -> new WearableArmorDecorationItemForge(material, type, properties));
}
public static RegistrySupplier
registerDyeableWearableArmorDecorationItem(DeferredRegister- items, String id, ArmorMaterial material, EquipmentSlot type, Item.Properties properties, int defaultcolor)
{
return items.register(id, () -> new DyeableWearableArmorDecorationItemForge(material, type, properties, defaultcolor));
}
public static RegistrySupplier
registerMedievalWeaponItem(DeferredRegister- items, String id, Item.Properties properties, ModItemTier material, WeaponType type)
{
return items.register(id, () -> new MedievalWeaponItemForge(properties, material, type));
}
public static RegistrySupplier
registerLanceItem(DeferredRegister- items, String id, Item.Properties properties, ModItemTier material, WeaponType type)
{
return items.register(id, () -> new LanceItemForge(properties, material, type));
}
public static RegistrySupplier
registerMedievalShieldItem(DeferredRegister- items, String id, ResourceLocation location, Item.Properties properties, ModItemTier material, boolean paintable, boolean is3d, ShieldType type)
{
return items.register(id, () -> new MedievalShieldItemForge(id, location, properties, material, paintable, is3d, type));
}
public static RegistrySupplier
registerPaviseItem(DeferredRegister- items, String id, ResourceLocation location, Item.Properties properties, ModItemTier material, boolean paintable, boolean is3d, ShieldType type)
{
return items.register(id, () -> new PaviseItemForge(id, location, properties, material, paintable, is3d, type));
}
}