Java 类net.minecraft.server.MonsterEggInfo 实例源码

项目:CraftBukkit    文件:CraftStatistic.java   
public static net.minecraft.server.Statistic getEntityStatistic(org.bukkit.Statistic stat, EntityType entity) {
    MonsterEggInfo monsteregginfo = (MonsterEggInfo) EntityTypes.eggInfo.get(Integer.valueOf(entity.getTypeId()));

    if (monsteregginfo != null) {
        return monsteregginfo.killEntityStatistic;
    }
    return null;
}
项目:Tweakkit-Server    文件:CraftStatistic.java   
public static net.minecraft.server.Statistic getEntityStatistic(org.bukkit.Statistic stat, EntityType entity) {
    MonsterEggInfo monsteregginfo = (MonsterEggInfo) EntityTypes.eggInfo.get(Integer.valueOf(entity.getTypeId()));

    if (monsteregginfo != null) {
        return monsteregginfo.killEntityStatistic;
    }
    return null;
}