mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
A special thanks goes to @aerouk for almost all of the changes found here. By: Wesley Wolfe <weswolf@aol.com>
32 lines
932 B
Java
32 lines
932 B
Java
package org.bukkit.potion;
|
|
|
|
import java.util.Collection;
|
|
|
|
/**
|
|
* Represents a brewer that can create {@link PotionEffect}s.
|
|
*/
|
|
public interface PotionBrewer {
|
|
|
|
/**
|
|
* Creates a {@link PotionEffect} from the given {@link PotionEffectType},
|
|
* applying duration modifiers and checks.
|
|
*
|
|
* @param potion The type of potion
|
|
* @param duration The duration in ticks
|
|
* @param amplifier The amplifier of the effect
|
|
* @return The resulting potion effect
|
|
*/
|
|
public PotionEffect createEffect(PotionEffectType potion, int duration, int amplifier);
|
|
|
|
/**
|
|
* Returns a collection of {@link PotionEffect} that would be applied from
|
|
* a potion with the given data value.
|
|
*
|
|
* @param damage The data value of the potion
|
|
* @return The list of effects
|
|
* @deprecated Magic value
|
|
*/
|
|
@Deprecated
|
|
public Collection<PotionEffect> getEffectsFromDamage(int damage);
|
|
}
|