public class RechiseledRegistrationImpl extends java.lang.Object implements RechiseledRegistration
| Modifier and Type | Field and Description |
|---|---|
boolean |
providersRegistered |
| Modifier and Type | Method and Description |
|---|---|
RechiseledBlockBuilder |
block(java.lang.String identifier)
Creates a new block builder.
|
void |
chiselingEntry(net.minecraft.util.ResourceLocation recipe,
java.util.function.Supplier<net.minecraft.item.Item> regularItem,
int regularData,
java.util.function.Supplier<net.minecraft.item.Item> connectingItem,
int connectingData)
Adds a new entry to a chiseling recipe.
|
void |
finalizeBuilder(RechiseledBlockBuilderImpl builder,
RechiseledBlockTypeImpl blockType) |
static void |
finalizeRegistration() |
static RechiseledRegistration |
get(java.lang.String modid)
Gets a
RechiseledRegistration for the given modid. |
java.util.Collection<RechiseledBlockType> |
getAllBlockTypes() |
java.util.List<com.supermartijn642.core.util.Pair<RechiseledBlockBuilderImpl,RechiseledBlockTypeImpl>> |
getBlockBuilders() |
java.util.List<com.supermartijn642.core.util.Triple<net.minecraft.util.ResourceLocation,com.supermartijn642.core.util.Pair<java.util.function.Supplier<net.minecraft.item.Item>,java.lang.Integer>,com.supermartijn642.core.util.Pair<java.util.function.Supplier<net.minecraft.item.Item>,java.lang.Integer>>> |
getChiselingEntries() |
com.supermartijn642.core.item.CreativeItemGroup |
getItemGroup() |
java.lang.String |
getItemGroupTranslation() |
java.lang.String |
getModid() |
com.supermartijn642.core.item.CreativeItemGroup |
itemGroup(java.util.function.Supplier<net.minecraft.item.Item> icon,
java.lang.String translation)
Creates an item group containing all the blocks created using this registration.
|
void |
registerDataProviders()
Registers all data providers.
|
public static RechiseledRegistration get(java.lang.String modid)
RechiseledRegistrationRechiseledRegistration for the given modid.
If called multiple times with the same modid, the same instance will be returned.get in interface RechiseledRegistrationpublic static void finalizeRegistration()
public RechiseledBlockBuilder block(java.lang.String identifier)
RechiseledRegistrationblock in interface RechiseledRegistrationidentifier - identifier used to register the blockpublic void chiselingEntry(net.minecraft.util.ResourceLocation recipe,
java.util.function.Supplier<net.minecraft.item.Item> regularItem,
int regularData,
java.util.function.Supplier<net.minecraft.item.Item> connectingItem,
int connectingData)
RechiseledRegistrationchiselingEntry in interface RechiseledRegistrationrecipe - the chiseling recipe to add the entry toregularItem - the regular option of the entryconnectingItem - the connecting option of the entryBaseChiselingRecipespublic com.supermartijn642.core.item.CreativeItemGroup itemGroup(java.util.function.Supplier<net.minecraft.item.Item> icon,
java.lang.String translation)
RechiseledRegistrationitemGroup in interface RechiseledRegistrationtranslation - English translation for the item group's titlepublic java.util.Collection<RechiseledBlockType> getAllBlockTypes()
getAllBlockTypes in interface RechiseledRegistrationpublic void registerDataProviders()
RechiseledRegistrationregisterDataProviders in interface RechiseledRegistrationpublic java.lang.String getModid()
public void finalizeBuilder(RechiseledBlockBuilderImpl builder, RechiseledBlockTypeImpl blockType)
public java.util.List<com.supermartijn642.core.util.Pair<RechiseledBlockBuilderImpl,RechiseledBlockTypeImpl>> getBlockBuilders()
public java.util.List<com.supermartijn642.core.util.Triple<net.minecraft.util.ResourceLocation,com.supermartijn642.core.util.Pair<java.util.function.Supplier<net.minecraft.item.Item>,java.lang.Integer>,com.supermartijn642.core.util.Pair<java.util.function.Supplier<net.minecraft.item.Item>,java.lang.Integer>>> getChiselingEntries()
public com.supermartijn642.core.item.CreativeItemGroup getItemGroup()
public java.lang.String getItemGroupTranslation()