Class PotionEffectReward

java.lang.Object
com.github.darksoulq.abyssallib.world.advancement.reward.PotionEffectReward
All Implemented Interfaces:
AdvancementReward

public class PotionEffectReward extends Object implements AdvancementReward
  • Field Details

  • Constructor Details

    • PotionEffectReward

      public PotionEffectReward(org.bukkit.potion.PotionEffect effect)
  • Method Details

    • getType

      public RewardType<?> getType()
      Description copied from interface: AdvancementReward
      Retrieves the reward type definition associated with this instance. This is used to identify the logic and handle polymorphic serialization.
      Specified by:
      getType in interface AdvancementReward
      Returns:
      The RewardType characterizing this specific reward.
    • grant

      public void grant(org.bukkit.entity.Player player)
      Description copied from interface: AdvancementReward
      Grants the reward to the specified player. This method is triggered automatically by the progress tracker when an advancement reaches a completed state.
      Specified by:
      grant in interface AdvancementReward
      Parameters:
      player - The Player who completed the advancement.