public class RechiseledBlockBuilderImpl extends java.lang.Object implements RechiseledBlockBuilder
| Modifier and Type | Field and Description |
|---|---|
java.util.function.Supplier<net.minecraft.block.Block> |
customConnectingVariant |
int |
customConnectingVariantData |
java.util.function.Supplier<net.minecraft.block.Block> |
customRegularVariant |
int |
customRegularVariantData |
java.util.function.Supplier<net.minecraft.block.Block> |
miningTagsFromBlock |
BlockModelType |
modelType |
net.minecraft.util.ResourceLocation |
recipe |
java.util.Set<net.minecraft.util.ResourceLocation> |
tags |
java.lang.String |
translation |
| Constructor and Description |
|---|
RechiseledBlockBuilderImpl(RechiseledRegistrationImpl registration,
java.lang.String identifier) |
| Modifier and Type | Method and Description |
|---|---|
RechiseledBlockBuilderImpl |
blockTag(java.lang.String namespace,
java.lang.String identifier)
Adds the constructed block to the given tag.
|
RechiseledBlockType |
build()
Completes this block builder and returns an
RechiseledBlockType containing the constructed blocks. |
RechiseledBlockBuilderImpl |
connectingVariant(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier)
Sets the connecting variant for this block to the given block.
|
RechiseledBlockBuilder |
connectingVariant(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier,
int data)
Sets the connecting variant for this block to the given block.
|
RechiseledBlockBuilderImpl |
copyProperties(java.util.function.Supplier<net.minecraft.block.Block> block)
Copies the properties from the given block
|
java.lang.String |
getIdentifier() |
RechiseledBlockBuilderImpl |
itemGroups(net.minecraft.creativetab.CreativeTabs group,
net.minecraft.creativetab.CreativeTabs... groups)
Sets the item groups the constructed blocks will be added to
|
RechiseledBlockBuilder |
miningTagsFrom(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier)
Copies the mining tags from the given block.
|
RechiseledBlockBuilder |
model(BlockModelType modelType)
Sets a different model type to be generated.
|
RechiseledBlockBuilderImpl |
noConnectingVariant()
Indicates that this block does not have a connecting variant
|
RechiseledBlockBuilderImpl |
noRegularVariant()
Indicates that this block does not have a non-connecting variant
|
RechiseledBlockBuilderImpl |
properties(com.supermartijn642.core.block.BlockProperties properties)
Sets the properties for the constructed blocks
|
RechiseledBlockBuilderImpl |
properties(java.util.function.Consumer<com.supermartijn642.core.block.BlockProperties> configurer)
Allows configuration of block properties
|
RechiseledBlockBuilderImpl |
recipe(net.minecraft.util.ResourceLocation location)
Sets the chiseling recipe which this block should be added to.
|
RechiseledBlockBuilderImpl |
regularVariant(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier)
Sets the regular variant for this block to the given block.
|
RechiseledBlockBuilder |
regularVariant(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier,
int data)
Sets the regular variant for this block to the given block.
|
RechiseledBlockBuilderImpl |
specification(BlockSpecification specification)
Sets the type of block to be constructed
|
RechiseledBlockBuilderImpl |
translation(java.lang.String translation)
Sets the translation for the constructed block.
|
public java.util.function.Supplier<net.minecraft.block.Block> customRegularVariant
public int customRegularVariantData
public java.util.function.Supplier<net.minecraft.block.Block> customConnectingVariant
public int customConnectingVariantData
public net.minecraft.util.ResourceLocation recipe
public final java.util.Set<net.minecraft.util.ResourceLocation> tags
public java.util.function.Supplier<net.minecraft.block.Block> miningTagsFromBlock
public java.lang.String translation
public BlockModelType modelType
public RechiseledBlockBuilderImpl(RechiseledRegistrationImpl registration, java.lang.String identifier)
public java.lang.String getIdentifier()
public RechiseledBlockBuilderImpl properties(com.supermartijn642.core.block.BlockProperties properties)
RechiseledBlockBuilderproperties in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl copyProperties(java.util.function.Supplier<net.minecraft.block.Block> block)
RechiseledBlockBuildercopyProperties in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl properties(java.util.function.Consumer<com.supermartijn642.core.block.BlockProperties> configurer)
RechiseledBlockBuilderproperties in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl itemGroups(net.minecraft.creativetab.CreativeTabs group, net.minecraft.creativetab.CreativeTabs... groups)
RechiseledBlockBuilderitemGroups in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl specification(BlockSpecification specification)
RechiseledBlockBuilderspecification in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl noRegularVariant()
RechiseledBlockBuildernoRegularVariant in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl noConnectingVariant()
RechiseledBlockBuildernoConnectingVariant in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl regularVariant(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier)
RechiseledBlockBuilderregularVariant in interface RechiseledBlockBuilderpublic RechiseledBlockBuilder regularVariant(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier, int data)
RechiseledBlockBuilderregularVariant in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl connectingVariant(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier)
RechiseledBlockBuilderconnectingVariant in interface RechiseledBlockBuilderpublic RechiseledBlockBuilder connectingVariant(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier, int data)
RechiseledBlockBuilderconnectingVariant in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl recipe(net.minecraft.util.ResourceLocation location)
RechiseledBlockBuilderrecipe in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl blockTag(java.lang.String namespace, java.lang.String identifier)
RechiseledBlockBuilderblockTag in interface RechiseledBlockBuilderpublic RechiseledBlockBuilder miningTagsFrom(java.util.function.Supplier<net.minecraft.block.Block> blockSupplier)
RechiseledBlockBuilderminingTagsFrom in interface RechiseledBlockBuilderpublic RechiseledBlockBuilderImpl translation(java.lang.String translation)
RechiseledBlockBuildertranslation in interface RechiseledBlockBuilderpublic RechiseledBlockBuilder model(BlockModelType modelType)
RechiseledBlockBuildermodel in interface RechiseledBlockBuilderpublic RechiseledBlockType build()
RechiseledBlockBuilderRechiseledBlockType containing the constructed blocks.build in interface RechiseledBlockBuilder