BlockBuilderStairs
A special Block Builder that allows you to create stairs.
Stairs will have not one but three textures that you will need to supply: One for the top, one for the bottom and one for the sides. By default these textures will use your blockname as name, suffixed by `_top`, `_bottom` or `_sides`. As with most things here, sample images are generated for you by default, though.
This class was added by a mod with mod-id contenttweaker
. So you need to have this mod installed if you want to use this feature.
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
Implemented Interfaces
BlockBuilderStairs implements the following interfaces. That means any method available to them can also be used on this class.
Methods
build
Instructs CoT to actually build whatever this builder is supposed to be building.
Parameter | Type | Description |
---|---|---|
Parameter resourceLocation | Type String | Description The resource path to give this block |
withBottomTexture
Allows you to override the path of the texture that the bottom side should use. If that texture’s namespace is in the namespace of CoT or any of its addons (that support it) then the image will be created by default.
Returns: This builder, used for method chaining
Return type: mods.contenttweaker.block.stairs.BlockBuilderStairs
Parameter | Type | Description |
---|---|---|
Parameter bottomTexture | Type MCResourceLocation | Description The texture to be used for the bottom side |
Allows you to override the path of the texture that the bottom side should use. If that texture’s namespace is in the namespace of CoT or any of its addons (that support it) then the image will be created by default. Uses a function that takes the block’s name as input and returns the end texture for it.
Returns: This builder, used for method chaining
Return type: mods.contenttweaker.block.stairs.BlockBuilderStairs
Parameter | Type | Description |
---|---|---|
Parameter bottomTexture | Type function.Function<MCResourceLocation, MCResourceLocation> | Description The function to use |
withSidesTexture
Allows you to override the path of the texture that the sides should use. If that texture’s namespace is in the namespace of CoT or any of its addons (that support it) then the image will be created by default.
Returns: This builder, used for method chaining
Return type: mods.contenttweaker.block.stairs.BlockBuilderStairs
Parameter | Type | Description |
---|---|---|
Parameter sidesTexture | Type MCResourceLocation | Description The texture to be used for the sides |
Allows you to override the path of the texture that the sides should use. If that texture’s namespace is in the namespace of CoT or any of its addons (that support it) then the image will be created by default. Uses a function that takes the block’s name as input and returns the end texture for it.
Returns: This builder, used for method chaining
Return type: mods.contenttweaker.block.stairs.BlockBuilderStairs
Parameter | Type | Description |
---|---|---|
Parameter sidesTexture | Type function.Function<MCResourceLocation, MCResourceLocation> | Description The function to use |
withTopTexture
Allows you to override the path of the texture that the top side should use. If that texture’s namespace is in the namespace of CoT or any of its addons (that support it) then the image will be created by default.
Returns: This builder, used for method chaining
Return type: mods.contenttweaker.block.stairs.BlockBuilderStairs
Parameter | Type | Description |
---|---|---|
Parameter topTexture | Type MCResourceLocation | Description The texture to be used for the top side |
Allows you to override the path of the texture that the top side should use. If that texture’s namespace is in the namespace of CoT or any of its addons (that support it) then the image will be created by default. Uses a function that takes the block’s name as input and returns the end texture for it.
Returns: This builder, used for method chaining
Return type: mods.contenttweaker.block.stairs.BlockBuilderStairs
Parameter | Type | Description |
---|---|---|
Parameter topTexture | Type function.Function<MCResourceLocation, MCResourceLocation> | Description The function to use |