Examples of PotionEffectTypeWrapper


Examples of org.bukkit.potion.PotionEffectTypeWrapper

        return result;
    }

    @Test
    public void effect() throws ReflectiveOperationException {
        PotionEffectTypeWrapper wrapper = (PotionEffectTypeWrapper) field.get(null);
        GlowPotionEffect effect = (GlowPotionEffect) wrapper.getType();
        assertNotNull("missing potion effect for " + field.getName(), effect);
        assertEquals("wrong name on wrapped effect", field.getName(), effect.getName());
        assertEquals("missing from byName", effect, PotionEffectType.getByName(effect.getName()));
        assertEquals("missing from byId", effect, PotionEffectType.getById(effect.getId()));
        assertTrue("non-positive duration amplifier for " + effect, effect.getDurationModifier() > 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.