Class RechiseledBlockBuilderImpl
java.lang.Object
com.supermartijn642.rechiseled.blocks.RechiseledBlockBuilderImpl
- All Implemented Interfaces:
RechiseledBlockBuilder
Created 18/04/2023 by SuperMartijn642
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRechiseledBlockBuilderImpl(RechiseledRegistrationImpl registration, String identifier) -
Method Summary
Modifier and TypeMethodDescriptionAdds the constructed block to the given tag.build()Completes this block builder and returns anRechiseledBlockTypecontaining the constructed blocks.connectingVariant(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Sets the connecting variant for this block to the given block.copyProperties(Supplier<net.minecraft.world.level.block.Block> block) Copies the properties from the given blockitemGroups(net.minecraft.world.item.CreativeModeTab group, net.minecraft.world.item.CreativeModeTab... groups) Sets the item groups the constructed blocks will be added tominingTagsFrom(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Copies the mining tags from the given block.model(BlockModelType modelType) Sets a different model type to be generated.Indicates that this block does not have a connecting variantIndicates that this block does not have a non-connecting variantproperties(com.supermartijn642.core.block.BlockProperties properties) Sets the properties for the constructed blocksproperties(Consumer<com.supermartijn642.core.block.BlockProperties> configurer) Allows configuration of block propertiesrecipe(net.minecraft.resources.ResourceLocation location) Sets the chiseling recipe which this block should be added to.regularVariant(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Sets the regular variant for this block to the given block.specification(BlockSpecification specification) Sets the type of block to be constructedtranslation(String translation) Sets the translation for the constructed block.
-
Field Details
-
customRegularVariant
-
customConnectingVariant
-
recipe
public net.minecraft.resources.ResourceLocation recipe -
tags
-
miningTagsFromBlock
-
translation
-
modelType
-
-
Constructor Details
-
RechiseledBlockBuilderImpl
-
-
Method Details
-
getIdentifier
-
properties
public RechiseledBlockBuilderImpl properties(com.supermartijn642.core.block.BlockProperties properties) Description copied from interface:RechiseledBlockBuilderSets the properties for the constructed blocks- Specified by:
propertiesin interfaceRechiseledBlockBuilder
-
copyProperties
public RechiseledBlockBuilderImpl copyProperties(Supplier<net.minecraft.world.level.block.Block> block) Description copied from interface:RechiseledBlockBuilderCopies the properties from the given block- Specified by:
copyPropertiesin interfaceRechiseledBlockBuilder
-
properties
public RechiseledBlockBuilderImpl properties(Consumer<com.supermartijn642.core.block.BlockProperties> configurer) Description copied from interface:RechiseledBlockBuilderAllows configuration of block properties- Specified by:
propertiesin interfaceRechiseledBlockBuilder
-
itemGroups
public RechiseledBlockBuilderImpl itemGroups(net.minecraft.world.item.CreativeModeTab group, net.minecraft.world.item.CreativeModeTab... groups) Description copied from interface:RechiseledBlockBuilderSets the item groups the constructed blocks will be added to- Specified by:
itemGroupsin interfaceRechiseledBlockBuilder
-
specification
Description copied from interface:RechiseledBlockBuilderSets the type of block to be constructed- Specified by:
specificationin interfaceRechiseledBlockBuilder
-
noRegularVariant
Description copied from interface:RechiseledBlockBuilderIndicates that this block does not have a non-connecting variant- Specified by:
noRegularVariantin interfaceRechiseledBlockBuilder
-
noConnectingVariant
Description copied from interface:RechiseledBlockBuilderIndicates that this block does not have a connecting variant- Specified by:
noConnectingVariantin interfaceRechiseledBlockBuilder
-
regularVariant
public RechiseledBlockBuilderImpl regularVariant(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Description copied from interface:RechiseledBlockBuilderSets the regular variant for this block to the given block. This is only relevant for the chiseling recipes.- Specified by:
regularVariantin interfaceRechiseledBlockBuilder
-
connectingVariant
public RechiseledBlockBuilderImpl connectingVariant(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Description copied from interface:RechiseledBlockBuilderSets the connecting variant for this block to the given block. This is only relevant for the chiseling recipes.- Specified by:
connectingVariantin interfaceRechiseledBlockBuilder
-
recipe
Description copied from interface:RechiseledBlockBuilderSets the chiseling recipe which this block should be added to.- Specified by:
recipein interfaceRechiseledBlockBuilder
-
blockTag
Description copied from interface:RechiseledBlockBuilderAdds the constructed block to the given tag.- Specified by:
blockTagin interfaceRechiseledBlockBuilder
-
miningTagsFrom
public RechiseledBlockBuilder miningTagsFrom(Supplier<net.minecraft.world.level.block.Block> blockSupplier) Description copied from interface:RechiseledBlockBuilderCopies the mining tags from the given block.- Specified by:
miningTagsFromin interfaceRechiseledBlockBuilder
-
translation
Description copied from interface:RechiseledBlockBuilderSets the translation for the constructed block.- Specified by:
translationin interfaceRechiseledBlockBuilder
-
model
Description copied from interface:RechiseledBlockBuilderSets a different model type to be generated. By default, the model type from the block specification will be used.- Specified by:
modelin interfaceRechiseledBlockBuilder
-
build
Description copied from interface:RechiseledBlockBuilderCompletes this block builder and returns anRechiseledBlockTypecontaining the constructed blocks.- Specified by:
buildin interfaceRechiseledBlockBuilder
-