Interface SimpleBlockConfiguration

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface SimpleBlockConfiguration extends FeatureConfiguration
A feature that places a block based on a block state provider.
Since:
3.0.0
See Also:
  • Method Details

    • toPlace

      @AsOf("3.0.0") BlockStateProvider toPlace()
      The block to use.
      Returns:
      the block state provider
      Since:
      3.0.0
    • scheduleTick

      @AsOf("3.0.0") boolean scheduleTick()
      Whether to schedule a block update.
      Returns:
      whether to schedule a block update
      Since:
      3.0.0
    • toBuilder

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

      @AsOf("3.0.0") static SimpleBlockConfiguration of(BlockStateProvider toPlace, boolean scheduleTick)
      Creates a new simple block configuration.
      Parameters:
      toPlace - the block state provider
      scheduleTick - whether to schedule a block update
      Returns:
      a new simple block configuration
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static SimpleBlockConfiguration of(BlockStateProvider toPlace)
      Creates a new simple block configuration.
      Parameters:
      toPlace - the block state provider
      Returns:
      a new simple block configuration
      Since:
      3.0.0
    • builder

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