Class CustomSpreadingImpl
java.lang.Object
io.github.vampirestudios.vampirelib.api.blockspreading.CustomSpreadingImpl
-
Constructor Summary
ConstructorsConstructorDescriptionCustomSpreadingImpl(net.minecraft.world.level.block.Block block, BlockSpreadingType type, SpreadingBehavior behavior) -
Method Summary
Modifier and TypeMethodDescriptionGets the defined spreading behaviour.net.minecraft.world.level.block.BlockgetBlock()Gets the block which should spread to other blocks.getType()Gets the defined spreading type the block should use.voidsetBehavior(SpreadingBehavior behavior) Sets the spreading behaviour for this block, defines what to change the block this spreads onto into.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
-
CustomSpreadingImpl
public CustomSpreadingImpl(net.minecraft.world.level.block.Block block, BlockSpreadingType type, SpreadingBehavior behavior) - Parameters:
block- The block which should spread to other blockstype- the type of spreading the block should use, checkBlockSpreadingTypeto look at which types existbehavior- The custom spreading behaviour, defines to what block to change the block this spreads onto into
-
-
Method Details
-
getBlock
public net.minecraft.world.level.block.Block getBlock()Gets the block which should spread to other blocks.- Returns:
- the block for this.
-
setBlock
public void setBlock(net.minecraft.world.level.block.Block block) Sets the block which should spread to other blocks.- Parameters:
block- block thingy
-
getType
Gets the defined spreading type the block should use.- Returns:
- the block for this.
-
setType
Sets the type of spreading the block should use, checkBlockSpreadingTypeto look at which types exist.- Parameters:
type- sets the spreading type
-
getBehavior
Gets the defined spreading behaviour.- Returns:
- the block for this.
-
setBehavior
Sets the spreading behaviour for this block, defines what to change the block this spreads onto into.- Parameters:
behavior- sets the behaviour
-