Interface RandomizedIntStateProvider

All Superinterfaces:
BlockStateProvider, Wrapper

@NullMarked @AsOf("3.0.0") public interface RandomizedIntStateProvider extends BlockStateProvider
Assigns a random value to an integer block property.
Since:
3.0.0
See Also:
  • invalid input: '<'
  • Method Details

    • source

      @AsOf("3.0.0") BlockStateProvider source()
      Another block state provider that specifies the source of the block state.
      Returns:
      the source block state provider
      Since:
      3.0.0
    • property

      @AsOf("3.0.0") String property()
      The name of a block property.
      Returns:
      the name of the block property
      Since:
      3.0.0
      See Also:
      • invalid input: '<'
    • values

      @AsOf("3.0.0") IntProvider values()
      The value of the block property.
      Returns:
      the value of the block property
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default RandomizedIntStateProvider.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static RandomizedIntStateProvider of(BlockStateProvider source, String property, IntProvider values)
      Creates a new randomized int block state provider.
      Parameters:
      source - the source block state provider
      property - the name of the block property
      values - the value of the block property
      Returns:
      a new randomized int block state provider
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static RandomizedIntStateProvider.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0