Negative Games Wiki
Discord
  • ๐Ÿ‘‹Landing
  • ๐ŸŽฌProjects
    • ๐Ÿ‘ฎPunishments
      • ๐Ÿ–‹๏ธCommands
      • ๐Ÿ“œConfiguration
        • main.yml
        • messages.yml
        • Menus
          • history-main.yml
          • history.yml
          • note-delete-confirmation.yml
          • note-editor.yml
          • notes.yml
          • punish-confirm.yml
          • punish.yml
          • records-main.yml
          • records.yml
          • records-single.yml
          • staff-history-main.yml
          • staff-history.yml
          • staff-leaderboard.yml
    • ๐Ÿ“‘alumina
      • ItemBuilder
      • PotionBuilder
      • InputListener
      • Commands
      • DependencyLoader
      • Events Subscriber
      • Static Logger
Powered by GitBook
On this page

Was this helpful?

  1. ๐ŸŽฌProjects
  2. ๐Ÿ“‘alumina

PotionBuilder

A simple yet fantastic way of building Potion Effects!

Example
PotionEffect effect = new PotionBuilder(PotionEffectType.SPEED)
    .duration(-1) // infinite duration
    .amplifier(0) // for level 1
    .particles(true) // show particles
    .build();

PreviousItemBuilderNextInputListener

Last updated 1 year ago

Was this helpful?