    001    package net.minecraft.src;
    002
    003    public enum EnumCreatureType
    004    {
    005        monster(IMob.class, 70, Material.air, false),
    006        creature(EntityAnimal.class, 15, Material.air, true),
    007        waterCreature(EntityWaterMob.class, 5, Material.water, true);
    008
    009        /**
    010         * The root class of creatures associated with this EnumCreatureType (IMobs for aggressive creatures, EntityAnimals
    011         * for friendly ones)
    012         */
    013        private final Class creatureClass;
    014        private final int maxNumberOfCreature;
    015        private final Material creatureMaterial;
    016
    017        /** A flag indicating whether this creature type is peaceful. */
    018        private final boolean isPeacefulCreature;
    019
    020        private EnumCreatureType(Class par3Class, int par4, Material par5Material, boolean par6)
    021        {
    022            this.creatureClass = par3Class;
    023            this.maxNumberOfCreature = par4;
    024            this.creatureMaterial = par5Material;
    025            this.isPeacefulCreature = par6;
    026        }
    027
    028        public Class getCreatureClass()
    029        {
    030            return this.creatureClass;
    031        }
    032
    033        public int getMaxNumberOfCreature()
    034        {
    035            return this.maxNumberOfCreature;
    036        }
    037
    038        public Material getCreatureMaterial()
    039        {
    040            return this.creatureMaterial;
    041        }
    042
    043        /**
    044         * Gets whether or not this creature type is peaceful.
    045         */
    046        public boolean getPeacefulCreature()
    047        {
    048            return this.isPeacefulCreature;
    049        }
    050    }