Class RechiseledRegistrationImpl
java.lang.Object
com.supermartijn642.rechiseled.registration.RechiseledRegistrationImpl
- All Implemented Interfaces:
RechiseledRegistration
Created 26/04/2023 by SuperMartijn642
-
Field Summary
Fields -
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.voidfinalizeBuilder(RechiseledBlockBuilderImpl builder, RechiseledBlockTypeImpl blockType) static voidstatic RechiseledRegistrationGets aRechiseledRegistrationfor the given modid.List<com.supermartijn642.core.util.Pair<RechiseledBlockBuilderImpl,RechiseledBlockTypeImpl>> List<com.supermartijn642.core.util.Triple<net.minecraft.resources.ResourceLocation,Supplier<net.minecraft.world.level.ItemLike>, Supplier<net.minecraft.world.level.ItemLike>>> com.supermartijn642.core.item.CreativeItemGroupgetModid()com.supermartijn642.core.item.CreativeItemGroupCreates an item group containing all the blocks created using this registration.voidRegisters all data providers.
-
Field Details
-
providersRegistered
public boolean providersRegistered
-
-
Method Details
-
get
Description copied from interface:RechiseledRegistrationGets aRechiseledRegistrationfor the given modid. If called multiple times with the same modid, the same instance will be returned. -
finalizeRegistration
public static void finalizeRegistration() -
block
Description copied from interface:RechiseledRegistrationCreates a new block builder.- Specified by:
blockin interfaceRechiseledRegistration- Parameters:
identifier- identifier used to register the block
-
chiselingEntry
public void chiselingEntry(net.minecraft.resources.ResourceLocation recipe, Supplier<net.minecraft.world.level.ItemLike> regularItem, Supplier<net.minecraft.world.level.ItemLike> connectingItem) Description copied from interface:RechiseledRegistrationAdds a new entry to a chiseling recipe.- Specified by:
chiselingEntryin interfaceRechiseledRegistration- Parameters:
recipe- the chiseling recipe to add the entry toregularItem- the regular option of the entryconnectingItem- the connecting option of the entry- See Also:
-
itemGroup
public com.supermartijn642.core.item.CreativeItemGroup itemGroup(Supplier<net.minecraft.world.level.ItemLike> icon, String translation) Description copied from interface:RechiseledRegistrationCreates an item group containing all the blocks created using this registration.- Specified by:
itemGroupin interfaceRechiseledRegistrationtranslation- English translation for the item group's title
-
getAllBlockTypes
- Specified by:
getAllBlockTypesin interfaceRechiseledRegistration- Returns:
- all block types created by this registration
-
registerDataProviders
public void registerDataProviders()Description copied from interface:RechiseledRegistrationRegisters all data providers.- Specified by:
registerDataProvidersin interfaceRechiseledRegistration
-
getModid
-
finalizeBuilder
-
getBlockBuilders
public List<com.supermartijn642.core.util.Pair<RechiseledBlockBuilderImpl,RechiseledBlockTypeImpl>> getBlockBuilders() -
getChiselingEntries
-
getItemGroup
public com.supermartijn642.core.item.CreativeItemGroup getItemGroup() -
getItemGroupTranslation
-