Class SherdUtils
java.lang.Object
dev.thomasglasser.sherdsapi.api.world.item.SherdUtils
Utilities for registering sherd items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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> RregisterSherd(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> RregisterSherd(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> RregisterSherd(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.ItemregisterSherd(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.ItemregisterSherd(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.ItemregisterSherd(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.PropertiessherdProperties(net.minecraft.resources.ResourceLocation pattern) Creates default item properties with the given sherd pattern component.static net.minecraft.world.item.Item.PropertiessherdProperties(net.minecraft.world.item.Item.Properties properties, net.minecraft.resources.ResourceLocation pattern) Applies the sherd pattern component to the given item properties.
-
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.
-