Package org.bukkit.potion
Interface PotionBrewer
-
public interface PotionBrewerRepresents a brewer that can createPotionEffects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description PotionEffectcreateEffect(PotionEffectType potion, int duration, int amplifier)Creates aPotionEffectfrom the givenPotionEffectType, applying duration modifiers and checks.Collection<PotionEffect>getEffects(PotionType type, boolean upgraded, boolean extended)Returns a collection ofPotionEffectthat would be applied from a potion with the given type.Collection<PotionEffect>getEffectsFromDamage(int damage)Deprecated.Non-Functional
-
-
-
Method Detail
-
createEffect
@NotNull PotionEffect createEffect(@NotNull PotionEffectType potion, int duration, int amplifier)
Creates aPotionEffectfrom the givenPotionEffectType, applying duration modifiers and checks.- Parameters:
potion- The type of potionduration- The duration in ticksamplifier- The amplifier of the effect- Returns:
- The resulting potion effect
-
getEffectsFromDamage
@Deprecated @NotNull Collection<PotionEffect> getEffectsFromDamage(int damage)
Deprecated.Non-FunctionalReturns a collection ofPotionEffectthat would be applied from a potion with the given data value.- Parameters:
damage- The data value of the potion- Returns:
- The list of effects
-
getEffects
@NotNull Collection<PotionEffect> getEffects(@NotNull PotionType type, boolean upgraded, boolean extended)
Returns a collection ofPotionEffectthat would be applied from a potion with the given type.- Parameters:
type- The type of the potionupgraded- Whether the potion is upgradedextended- Whether the potion is extended- Returns:
- The list of effects
-
-