Class SherdUtils

java.lang.Object
dev.thomasglasser.sherdsapi.api.world.item.SherdUtils

public class SherdUtils extends Object
Utilities for registering sherd items.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static dev.thomasglasser.tommylib.api.registration.ItemHolder<net.minecraft.world.item.Item>
    registerSherd(dev.thomasglasser.tommylib.api.registration.Registrar.Items provider, String name)
    Registers a sherd item with TommyLib Registrar with default vanilla naming and properties.
    static dev.thomasglasser.tommylib.api.registration.ItemHolder<net.minecraft.world.item.Item>
    registerSherd(dev.thomasglasser.tommylib.api.registration.Registrar.Items provider, String name, net.minecraft.resources.ResourceLocation pattern, net.minecraft.world.item.Item.Properties properties)
    Registers a sherd item with TommyLib Registrar with the given name, pattern, and properties.
    static dev.thomasglasser.tommylib.api.registration.ItemHolder<net.minecraft.world.item.Item>
    registerSherd(dev.thomasglasser.tommylib.api.registration.Registrar.Items provider, String name, net.minecraft.world.item.Item.Properties properties)
    Registers a sherd item with TommyLib Registrar with default vanilla naming.
    static <R> R
    registerSherd(BiFunction<String,Supplier<net.minecraft.world.item.Item>,R> registerFunc, String namespace, String name)
    Registers a sherd item using a supplier-based registration function with default vanilla naming and properties.
    static <R> R
    registerSherd(BiFunction<String,Supplier<net.minecraft.world.item.Item>,R> registerFunc, String namespace, String name, net.minecraft.world.item.Item.Properties properties)
    Registers a sherd item using a supplier-based registration function with default vanilla naming.
    static <R> R
    registerSherd(BiFunction<String,Supplier<net.minecraft.world.item.Item>,R> registerFunc, String name, net.minecraft.resources.ResourceLocation pattern, net.minecraft.world.item.Item.Properties properties)
    Registers a sherd item using a supplier-based registration function with the given name, pattern, and properties.
    static net.minecraft.world.item.Item
    registerSherd(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry, net.minecraft.resources.ResourceLocation id)
    Registers a sherd item with the given registry and id with default properties.
    static net.minecraft.world.item.Item
    registerSherd(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry, net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation pattern, net.minecraft.world.item.Item.Properties properties)
    Registers a sherd item with the given registry, id, pattern, and properties.
    static net.minecraft.world.item.Item
    registerSherd(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry, net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.Item.Properties properties)
    Registers a sherd item with the given registry, id, and properties, deriving the pattern from the id.
    static net.minecraft.world.item.Item.Properties
    sherdProperties(net.minecraft.resources.ResourceLocation pattern)
    Creates default item properties with the given sherd pattern component.
    static net.minecraft.world.item.Item.Properties
    sherdProperties(net.minecraft.world.item.Item.Properties properties, net.minecraft.resources.ResourceLocation pattern)
    Applies the sherd pattern component to the given item properties.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SherdUtils

      public SherdUtils()
  • Method Details

    • registerSherd

      public static net.minecraft.world.item.Item registerSherd(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry, net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation pattern, net.minecraft.world.item.Item.Properties properties)
      Registers a sherd item with the given registry, id, pattern, and properties.
    • registerSherd

      public static net.minecraft.world.item.Item registerSherd(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry, net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.Item.Properties properties)
      Registers a sherd item with the given registry, id, and properties, deriving the pattern from the id.
    • registerSherd

      public static net.minecraft.world.item.Item registerSherd(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry, net.minecraft.resources.ResourceLocation id)
      Registers a sherd item with the given registry and id with default properties.
    • registerSherd

      public static <R> R registerSherd(BiFunction<String,Supplier<net.minecraft.world.item.Item>,R> registerFunc, String name, net.minecraft.resources.ResourceLocation pattern, net.minecraft.world.item.Item.Properties properties)
      Registers a sherd item using a supplier-based registration function with the given name, pattern, and properties.
    • registerSherd

      public static <R> R registerSherd(BiFunction<String,Supplier<net.minecraft.world.item.Item>,R> registerFunc, String namespace, String name, net.minecraft.world.item.Item.Properties properties)
      Registers a sherd item using a supplier-based registration function with default vanilla naming.
    • registerSherd

      public static <R> R registerSherd(BiFunction<String,Supplier<net.minecraft.world.item.Item>,R> registerFunc, String namespace, String name)
      Registers a sherd item using a supplier-based registration function with default vanilla naming and properties.
    • registerSherd

      public static dev.thomasglasser.tommylib.api.registration.ItemHolder<net.minecraft.world.item.Item> registerSherd(dev.thomasglasser.tommylib.api.registration.Registrar.Items provider, String name, net.minecraft.resources.ResourceLocation pattern, net.minecraft.world.item.Item.Properties properties)
      Registers a sherd item with TommyLib Registrar with the given name, pattern, and properties.
    • registerSherd

      public static dev.thomasglasser.tommylib.api.registration.ItemHolder<net.minecraft.world.item.Item> registerSherd(dev.thomasglasser.tommylib.api.registration.Registrar.Items provider, String name, net.minecraft.world.item.Item.Properties properties)
      Registers a sherd item with TommyLib Registrar with default vanilla naming.
    • registerSherd

      public static dev.thomasglasser.tommylib.api.registration.ItemHolder<net.minecraft.world.item.Item> registerSherd(dev.thomasglasser.tommylib.api.registration.Registrar.Items provider, String name)
      Registers a sherd item with TommyLib Registrar with default vanilla naming and properties.
    • sherdProperties

      public static net.minecraft.world.item.Item.Properties sherdProperties(net.minecraft.world.item.Item.Properties properties, net.minecraft.resources.ResourceLocation pattern)
      Applies the sherd pattern component to the given item properties.
    • sherdProperties

      public static net.minecraft.world.item.Item.Properties sherdProperties(net.minecraft.resources.ResourceLocation pattern)
      Creates default item properties with the given sherd pattern component.