blob: 5db1ce85e8083fd8c8df19a7a8c701c5e6b88a43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.bukkit.potion;
public class PotionEffectTypeWrapper extends PotionEffectType {
protected PotionEffectTypeWrapper(int id) {
super(id);
}
@Override
public double getDurationModifier() {
return getType().getDurationModifier();
}
@Override
public String getName() {
return getType().getName();
}
/**
* Get the potion type bound to this wrapper.
*
* @return The potion effect type
*/
public PotionEffectType getType() {
return PotionEffectType.getById(getId());
}
@Override
public boolean isInstant() {
return getType().isInstant();
}
}
|