Interface SimpleStateProvider

All Superinterfaces:
BlockStateProvider, Wrapper

@NullMarked @AsOf("3.0.0") public interface SimpleStateProvider extends BlockStateProvider
A block state provider that always returns the same block state.
Since:
3.0.0
See Also:
  • Method Details

    • state

      BlockData state()
      The block attached to this provider.
      Returns:
      the block state
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static SimpleStateProvider of(BlockData state)
      Creates a new simple state provider.
      Parameters:
      state - the block state
      Returns:
      a new simple state provider
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static SimpleStateProvider of(Material material)
      Creates a new simple state provider.
      Parameters:
      material - the material of the block
      Returns:
      a new simple state provider
      Since:
      3.0.0