Class OreFeature.Builder

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

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

    • Builder

      public Builder()
    • Builder

      public Builder(OreFeature configuration)
  • Method Details

    • targetStates

      @AsOf("3.0.0") public OreFeature.Builder targetStates(List<OreFeature.TargetBlockState> targetStates)
      Sets the list of targets.
      Parameters:
      targetStates - the list of targets
      Returns:
      this builder
      Since:
      3.0.0
    • size

      @AsOf("3.0.0") public OreFeature.Builder size(int size)
      Sets the size of the ore vein.
      Parameters:
      size - the size of the ore vein
      Returns:
      this builder
      Since:
      3.0.0
    • discardChanceOnAirExposure

      @AsOf("3.0.0") public OreFeature.Builder discardChanceOnAirExposure(float discardChanceOnAirExposure)
      Sets the discard chance.
      Parameters:
      discardChanceOnAirExposure - the discard chance
      Returns:
      this builder
      Since:
      3.0.0
    • target

      @AsOf("3.0.0") public OreFeature.Builder target(RuleTest target, BlockData state)
      Adds a target block state.
      Parameters:
      target - the target rule test
      state - the block state
      Returns:
      this builder
      Since:
      3.0.0
    • target

      @AsOf("3.0.0") public OreFeature.Builder target(OreFeature.TargetBlockState... targetStates)
      Adds multiple target block states.
      Parameters:
      targetStates - the target block states to add
      Returns:
      this builder
      Since:
      3.0.0
    • build

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