Class NormalSpreadingImpl

java.lang.Object
io.github.vampirestudios.vampirelib.api.blockspreading.NormalSpreadingImpl

public class NormalSpreadingImpl extends Object
  • Constructor Details

    • NormalSpreadingImpl

      public NormalSpreadingImpl(net.minecraft.world.level.block.Block block, BlockSpreadingType type)
      Parameters:
      block - The block which should spread to other blocks
      type - the type of spreading the block should use, check BlockSpreadingType to 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

      public BlockSpreadingType getType()
      Gets the defined spreading type the block should use.
      Returns:
      type
    • setType

      public void setType(BlockSpreadingType type)
      Sets the type of spreading the block should use, check BlockSpreadingType to look at which types exist.
      Parameters:
      type - type