Class SpreadBehaviors.SimpleSpreaderBehavior

java.lang.Object
io.github.vampirestudios.vampirelib.api.blockspreading.SpreadBehaviors.SimpleSpreaderBehavior
All Implemented Interfaces:
SpreadingBehavior
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)
  • Method Details

    • getStateForSpread

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