mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-27 10:23:52 -07:00
@@ -141,9 +141,9 @@ public class Potion {
|
||||
* Returns a collection of {@link PotionEffect}s that this {@link Potion}
|
||||
* would confer upon a {@link LivingEntity}.
|
||||
*
|
||||
* @return The effects that this potion applies
|
||||
* @see PotionBrewer#getEffectsFromDamage(int)
|
||||
* @see Potion#toDamageValue()
|
||||
* @return The effects that this potion applies
|
||||
*/
|
||||
@NotNull
|
||||
public Collection<PotionEffect> getEffects() {
|
||||
|
@@ -184,10 +184,10 @@ public abstract class PotionEffectType {
|
||||
* Creates a PotionEffect from this PotionEffectType, applying duration
|
||||
* modifiers and checks.
|
||||
*
|
||||
* @see PotionBrewer#createEffect(PotionEffectType, int, int)
|
||||
* @param duration time in ticks
|
||||
* @param amplifier the effect's amplifier
|
||||
* @return a resulting potion effect
|
||||
* @see PotionBrewer#createEffect(PotionEffectType, int, int)
|
||||
*/
|
||||
@NotNull
|
||||
public PotionEffect createEffect(int duration, int amplifier) {
|
||||
|
Reference in New Issue
Block a user