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

public class SpreadBehaviors extends Object
  • Constructor Details

    • SpreadBehaviors

      public SpreadBehaviors()
  • Method Details

    • addSimpleSpreaderBehavior

      public static void addSimpleSpreaderBehavior(net.minecraft.world.level.block.Block block, BlockSpreadingType type)
      This method allows you to add a simple spreading behavior
    • addComplexSpreaderBehavior

      public static void addComplexSpreaderBehavior(net.minecraft.world.level.block.Block block, BlockSpreadingType type, SpreadingBehavior behavior)
      This method allows you to add a complex spreading behavior
    • canSpread

      public static boolean canSpread(net.minecraft.world.level.block.state.BlockState state, BlockSpreadingType type)
    • getSpreadState

      public static net.minecraft.world.level.block.state.BlockState getSpreadState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, BlockSpreadingType type)