Exemplo n.º 1
0
        public static List <ChestRule> LoadChestRules(TagCompound tag)
        {
            var rules = new List <ChestRule>();
            int count = tag.GetInt("Count");

            for (int k = 0; k < count; k++)
            {
                rules.Add(ChestRule.Deserialize(tag.GetCompound("Rule" + k)));
            }

            return(rules);
        }