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 Summary
Modifier and TypeMethodDescriptionCreates a new block builder.voidchiselingEntry(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.static RechiseledRegistrationGets aRechiseledRegistrationfor the given modid.net.minecraft.world.item.CreativeModeTabCreates an item group containing all the blocks created using this registration.voidRegisters all data providers.
-
Method Details
-
get
Gets aRechiseledRegistrationfor the given modid. If called multiple times with the same modid, the same instance will be returned. -
block
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 toregularItem- the regular option of the entryconnectingItem- the connecting option of the entry- Throws:
IllegalArgumentException- when both item inputs arenull- 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.
-