public final class NMS extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
fixPotionEffectDuration(PotionEffectType type,
int duration)
This method returns a duration that is constant-time based upon the given
PotionEffectType. |
public int fixPotionEffectDuration(PotionEffectType type, int duration)
PotionEffectType. Due to NMS internals with "MobEffectType",
some effects are abstractly divided by 2, to which this method undoes
that division for the relevant effects. Note this is a hardcoded method
which is up-to-date for Minecraft 1.8.*type - The PotionEffectType to checkduration - The duration for the effectCopyright © 2015. All rights reserved.