Class EndSpike.Builder

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

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

    • Builder

      public Builder()
    • Builder

      public Builder(EndSpike spike)
  • Method Details

    • centerX

      @AsOf("3.0.0") public EndSpike.Builder centerX(int centerX)
      Sets the X coordinate of the center of the spike.
      Parameters:
      centerX - the center X coordinate
      Returns:
      this builder
      Since:
      3.0.0
    • centerZ

      @AsOf("3.0.0") public EndSpike.Builder centerZ(int centerZ)
      Sets the Z coordinate of the center of the spike.
      Parameters:
      centerZ - the center Z coordinate
      Returns:
      this builder
      Since:
      3.0.0
    • radius

      @AsOf("3.0.0") public EndSpike.Builder radius(int radius)
      Sets the radius of the spike.
      Parameters:
      radius - the radius
      Returns:
      this builder
      Since:
      3.0.0
    • height

      @AsOf("3.0.0") public EndSpike.Builder height(int height)
      Sets the height of the spike.
      Parameters:
      height - the height
      Returns:
      this builder
      Since:
      3.0.0
    • guarded

      @AsOf("3.0.0") public EndSpike.Builder guarded(boolean guarded)
      Sets whether an iron bar cage is generated around the crystal on top of the spike.
      Parameters:
      guarded - whether the crystal is guarded
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public EndSpike build()
      Builds the end spike.
      Returns:
      the end spike
      Since:
      3.0.0