com.magistuarmory.item.fabric.ItemRegistryHelperImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of 1.19.2-epic-knights-fabric Show documentation
Show all versions of 1.19.2-epic-knights-fabric Show documentation
mod that adds medieval stuff to the game
The newest version!
package com.magistuarmory.item.fabric;
import com.magistuarmory.fabric.item.LanceItemFabric;
import com.magistuarmory.fabric.item.MedievalWeaponItemFabric;
import com.magistuarmory.item.*;
import com.magistuarmory.item.armor.*;
import dev.architectury.registry.registries.DeferredRegister;
import dev.architectury.registry.registries.RegistrySupplier;
import net.minecraft.class_1304;
import net.minecraft.class_1741;
import net.minecraft.class_1792;
import net.minecraft.class_2960;
import net.minecraft.world.item.*;
public class ItemRegistryHelperImpl
{
public static RegistrySupplier registerKnightItem(DeferredRegister items, String id, class_1741 material, class_1304 type, class_1792.class_1793 properties)
{
return items.register(id, () -> new KnightItem(material, type, properties));
}
public static RegistrySupplier registerJoustingItem(DeferredRegister items, String id, class_1741 material, class_1304 type, class_1792.class_1793 properties)
{
return items.register(id, () -> new JoustingItem(material, type, properties));
}
public static RegistrySupplier registerMedievalArmorItem(DeferredRegister items, String id, class_1741 material, class_1304 type, class_1792.class_1793 properties)
{
return items.register(id, () -> new MedievalArmorItem(material, type, properties));
}
public static RegistrySupplier registerDyeableMedievalArmorItem(DeferredRegister items, String id, class_1741 material, class_1304 type, class_1792.class_1793 properties, int defaultcolor)
{
return items.register(id, () -> new DyeableMedievalArmorItem(material, type, properties, defaultcolor));
}
public static RegistrySupplier registerWearableArmorDecorationItem(DeferredRegister items, String id, class_1741 material, class_1304 type, class_1792.class_1793 properties)
{
return items.register(id, () -> new WearableArmorDecorationItem(material, type, properties));
}
public static RegistrySupplier registerDyeableWearableArmorDecorationItem(DeferredRegister items, String id, class_1741 material, class_1304 type, class_1792.class_1793 properties, int defaultcolor)
{
return items.register(id, () -> new DyeableWearableArmorDecorationItem(material, type, properties, defaultcolor));
}
public static RegistrySupplier registerMedievalWeaponItem(DeferredRegister items, String id, class_1792.class_1793 properties, ModItemTier material, WeaponType type)
{
return items.register(id, () -> new MedievalWeaponItemFabric(properties, material, type));
}
public static RegistrySupplier registerLanceItem(DeferredRegister items, String id, class_1792.class_1793 properties, ModItemTier material, WeaponType type)
{
return items.register(id, () -> new LanceItemFabric(properties, material, type));
}
public static RegistrySupplier registerMedievalShieldItem(DeferredRegister items, String id, class_2960 location, class_1792.class_1793 properties, ModItemTier material, boolean paintable, boolean is3d, ShieldType type)
{
return items.register(id, () -> new MedievalShieldItem(id, location, properties, material, paintable, is3d, type));
}
public static RegistrySupplier registerPaviseItem(DeferredRegister items, String id, class_2960 location, class_1792.class_1793 properties, ModItemTier material, boolean paintable, boolean is3d, ShieldType type)
{
return items.register(id, () -> new PaviseItem(id, location, properties, material, paintable, is3d, type));
}
}