Interface SpreadingBehavior

All Known Implementing Classes:
SpreadBehaviors.SimpleSpreaderBehavior
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SpreadingBehavior
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Used for SpreadingBlock, which allows extending spread behavior.
  • Method Details

    • getStateForSpread

      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)
      Used for SpreadingBlock, which allows extending spread behavior.
      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