Class NormalSpreadingImpl
java.lang.Object
io.github.vampirestudios.vampirelib.api.blockspreading.NormalSpreadingImpl
-
Constructor Summary
ConstructorsConstructorDescriptionNormalSpreadingImpl(net.minecraft.world.level.block.Block block, BlockSpreadingType type) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.BlockgetBlock()Gets the block which should spread to other blocks.getType()Gets the defined spreading type the block should use.voidsetBlock(net.minecraft.world.level.block.Block block) Sets the block which should spread to other blocks.voidsetType(BlockSpreadingType type) Sets the type of spreading the block should use, checkBlockSpreadingTypeto look at which types exist.
-
Constructor Details
-
NormalSpreadingImpl
- Parameters:
block- The block which should spread to other blockstype- the type of spreading the block should use, checkBlockSpreadingTypeto look at which types exist
-
-
Method Details
-
getBlock
public net.minecraft.world.level.block.Block getBlock()Gets the block which should spread to other blocks.- Returns:
- block
-
setBlock
public void setBlock(net.minecraft.world.level.block.Block block) Sets the block which should spread to other blocks.- Parameters:
block- block
-
getType
Gets the defined spreading type the block should use.- Returns:
- type
-
setType
Sets the type of spreading the block should use, checkBlockSpreadingTypeto look at which types exist.- Parameters:
type- type
-