コード例 #1
0
ファイル: PotionType.cs プロジェクト: Mitch528/BukkitNET
        public static bool IsInstant(this PotionType type)
        {
            var attrib = type.GetAttribute <PotionTypeInfoAttribute>();
            var effect = attrib.Effect;

            var et = PotionEffectType.GetById(effect);

            return(et == null || et.IsInstant());
        }
コード例 #2
0
ファイル: PotionType.cs プロジェクト: Mitch528/BukkitNET
        public static int GetMaxLevel(this PotionType type)
        {
            var attrib = type.GetAttribute <PotionTypeInfoAttribute>();

            return(attrib.MaxLevel);
        }
コード例 #3
0
ファイル: PotionType.cs プロジェクト: Mitch528/BukkitNET
        public static int GetDamageValue(this PotionType type)
        {
            var attrib = type.GetAttribute <PotionTypeInfoAttribute>();

            return(attrib.DamageValue);
        }