Class SpreadBehaviors.SimpleSpreaderBehavior

java.lang.Object
io.github.vampirestudios.vampirelib.api.blockspreading.SpreadBehaviors.SimpleSpreaderBehavior
All Implemented Interfaces:
SpreadingBehavior
Direct Known Subclasses:
SpreadBehaviors.SnowySpreaderBehavior
Enclosing class:
SpreadBehaviors

public static class SpreadBehaviors.SimpleSpreaderBehavior extends Object implements SpreadingBehavior
  • Constructor Details

    • SimpleSpreaderBehavior

      public SimpleSpreaderBehavior(net.minecraft.world.level.block.state.BlockState state)
    • SimpleSpreaderBehavior

      public SimpleSpreaderBehavior(net.minecraft.world.level.block.Block block)
  • Method Details

    • getState

      public net.minecraft.world.level.block.state.BlockState getState()
    • getStateForSpread

      public net.minecraft.world.level.block.state.BlockState getStateForSpread(net.minecraft.world.level.block.state.BlockState stateIn, net.minecraft.world.level.Level levelIn, net.minecraft.core.BlockPos posIn)
      Description copied from interface: SpreadingBehavior
      Used for SpreadingBlock, which allows extending spread behavior.
      Specified by:
      getStateForSpread in interface SpreadingBehavior
      Parameters:
      stateIn - previous state at this position
      levelIn - the world the state is in
      posIn - the current position of the block
      Returns:
      new state to place at the location