public final class NMS extends Object
|Modifier and Type||Method and Description|
This method returns a duration that is constant-time based upon the given
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.*
duration- The duration for the effect
Copyright © 2017. All rights reserved.