Interface WeightedStateProvider

All Superinterfaces:
BlockStateProvider, Wrapper

@NullMarked @AsOf("3.0.0") public interface WeightedStateProvider extends BlockStateProvider
A block state provider of weighted entries.
Since:
3.0.0
See Also:
  • Method Details

    • entries

      @AsOf("3.0.0") WeightedList<BlockData> entries()
      A weighted list entry of each block state.
      Returns:
      a weighted list of block states
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default WeightedStateProvider.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 WeightedStateProvider of(WeightedList<BlockData> entries)
      Creates a new weighted state provider.
      Parameters:
      entries - the weighted list of block states
      Returns:
      a new weighted state provider
      Since:
      3.0.0
    • builder

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