Class SpikeFeature.Builder

java.lang.Object
dev.wyck.worldgen.feature.configurations.SpikeFeature.Builder
Enclosing interface:
SpikeFeature

@AsOf("3.0.0") public static final class SpikeFeature.Builder extends Object
Builder for SpikeFeature.
Since:
3.0.0
  • Constructor Details

    • Builder

      public Builder()
    • Builder

      public Builder(SpikeFeature configuration)
  • Method Details

    • state

      @AsOf("3.0.0") public SpikeFeature.Builder state(BlockData state)
      Sets the block state.
      Parameters:
      state - the block state
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOn

      @AsOf("3.0.0") public SpikeFeature.Builder canPlaceOn(BlockPredicate canPlaceOn)
      Sets the can place on predicate.
      Parameters:
      canPlaceOn - the can place on predicate
      Returns:
      this builder
      Since:
      3.0.0
    • canReplace

      @AsOf("3.0.0") public SpikeFeature.Builder canReplace(BlockPredicate canReplace)
      Sets the can replace predicate.
      Parameters:
      canReplace - the can replace predicate
      Returns:
      this builder
      Since:
      3.0.0
    • state

      @AsOf("3.0.0") public SpikeFeature.Builder state(Material material)
      Sets the block state.
      Parameters:
      material - the block state
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public SpikeFeature build()
      Builds the configuration.
      Returns:
      the configuration
      Since:
      3.0.0