Class PhaseBuilder.PhaseActionsBuilder

java.lang.Object
dev.itsharshxd.zentrix.api.phase.PhaseBuilder.PhaseActionsBuilder
Enclosing class:
PhaseBuilder

public static class PhaseBuilder.PhaseActionsBuilder extends Object
Builder for configuring on-start actions.
  • Constructor Details

    • PhaseActionsBuilder

      public PhaseActionsBuilder()
  • Method Details

    • announce

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder announce(@NotNull @NotNull String message)
      Adds an announcement message action.
      Parameters:
      message - The message to announce
      Returns:
      This builder for chaining
    • title

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder title(@NotNull @NotNull String main, @Nullable @Nullable String subtitle)
      Adds a title action with default timing.
      Parameters:
      main - The main title text
      subtitle - The subtitle text
      Returns:
      This builder for chaining
    • title

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder title(@NotNull @NotNull String main, @Nullable @Nullable String subtitle, int fadeIn, int stay, int fadeOut)
      Adds a title action with custom timing.
      Parameters:
      main - The main title text
      subtitle - The subtitle text
      fadeIn - Fade in time in ticks
      stay - Stay time in ticks
      fadeOut - Fade out time in ticks
      Returns:
      This builder for chaining
    • sound

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder sound(@NotNull @NotNull org.bukkit.Sound sound, float volume, float pitch)
      Adds a sound action.
      Parameters:
      sound - The sound to play
      volume - The volume (0.0-1.0)
      pitch - The pitch (0.5-2.0)
      Returns:
      This builder for chaining
    • togglePvP

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder togglePvP(boolean enable)
      Adds a PvP toggle action.
      Parameters:
      enable - true to enable PvP
      Returns:
      This builder for chaining
    • giveEffect

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder giveEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type, int duration, int amplifier)
      Adds a potion effect action.
      Parameters:
      type - The potion effect type
      duration - Duration in ticks
      amplifier - The amplifier (0 = level 1)
      Returns:
      This builder for chaining
    • giveItem

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder giveItem(@NotNull @NotNull String itemId)
      Adds an item give action.
      Parameters:
      itemId - The item identifier
      Returns:
      This builder for chaining
    • command

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder command(@NotNull @NotNull String command)
      Adds a command action.
      Parameters:
      command - The command to execute
      Returns:
      This builder for chaining
    • startDeathmatch

      @NotNull public @NotNull PhaseBuilder.PhaseActionsBuilder startDeathmatch()
      Adds a deathmatch start action.
      Returns:
      This builder for chaining