Interface RechiseledRegistration

All Known Implementing Classes:
RechiseledRegistrationImpl

public interface RechiseledRegistration
Allows for easy registration of new blocks for chiseling variants. Data providers for models, block states, translations, tags, loot tables, and chiseling recipes will automatically be registered.

Created 26/04/2023 by SuperMartijn642

  • Method Details

    • get

      static RechiseledRegistration get(String modid)
      Gets a RechiseledRegistration for the given modid. If called multiple times with the same modid, the same instance will be returned.
    • block

      RechiseledBlockBuilder block(String identifier)
      Creates a new block builder.
      Parameters:
      identifier - identifier used to register the block
    • chiselingEntry

      void chiselingEntry(net.minecraft.resources.ResourceLocation recipe, Supplier<net.minecraft.world.level.ItemLike> regularItem, Supplier<net.minecraft.world.level.ItemLike> connectingItem)
      Adds a new entry to a chiseling recipe.
      Parameters:
      recipe - the chiseling recipe to add the entry to
      regularItem - the regular option of the entry
      connectingItem - the connecting option of the entry
      Throws:
      IllegalArgumentException - when both item inputs are null
      See Also:
    • itemGroup

      net.minecraft.world.item.CreativeModeTab itemGroup(Supplier<net.minecraft.world.level.ItemLike> icon, String translation)
      Creates an item group containing all the blocks created using this registration.
      Parameters:
      translation - English translation for the item group's title
      Throws:
      IllegalStateException - when an item group for this registration has already been created
    • getAllBlockTypes

      Collection<RechiseledBlockType> getAllBlockTypes()
      Returns:
      all block types created by this registration
    • registerDataProviders

      void registerDataProviders()
      Registers all data providers.