Class TimeMarker.Builder

java.lang.Object
dev.wyck.level.dimension.clock.TimeMarker.Builder
Enclosing interface:
TimeMarker

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

    • Builder

      public Builder()
    • Builder

      public Builder(TimeMarker marker)
  • Method Details

    • key

      @AsOf("3.2.0") public TimeMarker.Builder key(ResourceKey key)
      Sets the key of the time marker.
      Parameters:
      key - the key of the time marker
      Returns:
      this builder
      Since:
      3.2.0
    • ticks

      @AsOf("3.2.0") public TimeMarker.Builder ticks(int ticks)
      Sets the number of ticks the time marker represents.
      Parameters:
      ticks - the number of ticks the time marker represents
      Returns:
      this builder
      Since:
      3.2.0
    • showInCommands

      @AsOf("3.2.0") public TimeMarker.Builder showInCommands(boolean showInCommands)
      Sets whether the time marker should be shown in the /time command.
      Parameters:
      showInCommands - whether the time marker should be shown in the /time command
      Returns:
      this builder
      Since:
      3.2.0
    • build

      @AsOf("3.2.0") public TimeMarker build()
      Builds the time marker.
      Returns:
      the time marker
      Since:
      3.2.0