Class EndSpikeFeature.Builder

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

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

    • Builder

      public Builder()
    • Builder

      public Builder(EndSpikeFeature configuration)
  • Method Details

    • crystalInvulnerable

      @AsOf("3.0.0") public EndSpikeFeature.Builder crystalInvulnerable(boolean crystalInvulnerable)
      Sets whether the End crystals on top of the spikes are invulnerable.
      Parameters:
      crystalInvulnerable - whether the crystals are invulnerable
      Returns:
      this builder
      Since:
      3.0.0
    • spikes

      @AsOf("3.0.0") public EndSpikeFeature.Builder spikes(List<EndSpike> spikes)
      Sets the configuration of each spike, replacing any existing spikes.
      Parameters:
      spikes - the spikes
      Returns:
      this builder
      Since:
      3.0.0
    • spike

      @AsOf("3.0.0") public EndSpikeFeature.Builder spike(EndSpike... spikes)
      Adds one or more spikes to the configuration.
      Parameters:
      spikes - the spikes to add
      Returns:
      this builder
      Since:
      3.0.0
    • crystalBeamTarget

      @AsOf("3.0.0") public EndSpikeFeature.Builder crystalBeamTarget(@Nullable BlockVector crystalBeamTarget)
      Sets the block position the crystal beams target.
      Parameters:
      crystalBeamTarget - the crystal beam target, or null to unset
      Returns:
      this builder
      Since:
      3.0.0
    • build

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